We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7152164 commit 0a058bdCopy full SHA for 0a058bd
tests/tensor/test_variable.py
@@ -83,10 +83,12 @@ def test_dot_method():
83
exp_res = dot(X, y)
84
assert equal_computations([res], [exp_res])
85
86
+ # This doesn't work. Numpy calls TensorVariable.__rmul__ at some point and everything is messed up
87
X_val = np.arange(2 * 3).reshape((2, 3))
- res = as_tensor(X_val).dot(y)
88
+ res = X_val.dot(y)
89
exp_res = dot(X_val, y)
- assert equal_computations([res], [exp_res])
90
+ with pytest.raises(AssertionError):
91
+ assert equal_computations([res], [exp_res])
92
93
94
def test_infix_matmul_method():
0 commit comments