Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Avoid future warning #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

takatex
Copy link

@takatex takatex commented Oct 8, 2018

Hi,

A part of your test codes output a warning as follows:

UserWarning: invalid index of a 0-dim tensor. This will be an error in PyTorch 0.5. Use tensor.item() to convert a 0-dim tensor to a Python number

I changed the part in order to present more easily confirmable display content.

Many thanks for your good documents

@salesforce-cla
Copy link

salesforce-cla bot commented Oct 8, 2018

Thanks for the contribution! Before we can merge this, we need @takatex to sign the Salesforce.com Contributor License Agreement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant