-
-
Save arunm8489/05055054c1dd6c8f01f7262d779a6eb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
non_zero_index = (torch.nonzero(image_pred[:,4])) # non_zero_ind will give the indexes | |
image_pred_ = image_pred[non_zero_index.squeeze(),:].view(-1,7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment