Use the proper accessor to refer to the value of a scalar tensor

This commit is contained in:
Benoit Steiner 2015-12-10 22:53:56 -08:00
parent 8e00ea9a92
commit 8d28a161b2

View File

@ -18,7 +18,7 @@ static void test_comparison_sugar() {
#define TEST_TENSOR_EQUAL(e1, e2) \
b = ((e1) == (e2)).all(); \
VERIFY(b(0))
VERIFY(b())
#define TEST_OP(op) TEST_TENSOR_EQUAL(t op 0, t op t.constant(0))