generative-models icon indicating copy to clipboard operation
generative-models copied to clipboard

In pytorch 0.5 0-dim tensors will be an error rather than a warning

Open whackashoe opened this issue 7 years ago • 0 comments

This replaces 0-dim tensors with item() to get a Python number from the tensors containing a single value.

whackashoe avatar Sep 26 '18 13:09 whackashoe