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
I am very new to Rust in general and to the juice/coaster crates in particular. Undoubtedly the following issue is due to my poor understanding, which is why I am not marking this as a bug.
Leaning heavily on the usage example provided here, I am trying to compute the dot product of two tensors (a 2x2 matrix and a 2x1 vector to be precise).
This is my output:
Data:
x = [1.0, 2.0]
w = [[1.0, 1.0],
[3.0, -1.0]]
Expected result:
w*x = [3.0, 1.0]
Actual result:
w*x = [3.0, 0.0]
I am very new to Rust in general and to the juice/coaster crates in particular. Undoubtedly the following issue is due to my poor understanding, which is why I am not marking this as a bug.
Leaning heavily on the usage example provided here, I am trying to compute the dot product of two tensors (a
2x2
matrix and a2x1
vector to be precise).This is my output:
Here is the code:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: