-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in javacpp-pytorch tensor slice batch broadcast opration how to do like python pytorch style ? #1563
Comments
if I write this code like this
I think not suit pytorch |
or like this
|
See https://pytorch.org/cppdocs/notes/tensor_indexing.html. |
I see , thanks
in cpp libtorch , I see them write code like this
|
In Java you don't have operator overloading, so, compared to C++, you must replace the operators like |
ok, I know ,thanks ,I will try another way do that |
last year ,I found I had write some code to do tensor index set value
use javacpp-pytorch scala code
use javacpp-pytorch for tensor index slice batch broadcast opration is so hard and more line than python pytorch, do we has easy way ? thanks |
HI ,
in python code , tensor slice batch broadcast opration is very easy and convient ,like this
but now in javacpp-pytorch ,I can not do that to set batch value ,so how to do like this
thanks
The text was updated successfully, but these errors were encountered: