Skip to content

Use tensor.item() for scalar conversion#11

Open
ketankr9 wants to merge 1 commit intohiggsfield:masterfrom
ketankr9:patch-1
Open

Use tensor.item() for scalar conversion#11
ketankr9 wants to merge 1 commit intohiggsfield:masterfrom
ketankr9:patch-1

Conversation

@ketankr9
Copy link

To handle

IndexError:_ invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number

To handle
IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant