You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should change [ so it no longer passes tensors through as-is, but translates then from 1-based to 0-based (This would help prevent nasty surprises when people wrap functions in tf_function().
e.g.,
x<- as_tensor(1:10)
i<-1Lx[i] ==x[as_tensor(i)]
The text was updated successfully, but these errors were encountered:
t-kalinowski
changed the title
[ should translate Tensors from 1-based to 0-based[ should treat Tensors indices as 1-based
Mar 11, 2022
We should change
[
so it no longer passes tensors through as-is, but translates then from 1-based to 0-based (This would help prevent nasty surprises when people wrap functions intf_function()
.e.g.,
The text was updated successfully, but these errors were encountered: