Skip to content

Commit f0d91bb

Browse files
author
codethinki
committed
fixed compilation on linux with missing template keyword
1 parent 3ff7b10 commit f0d91bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flashlight/fl/test/tensor/TensorBaseTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ void assertScalarBehavior(fl::dtype type) {
479479
ScalarArgType val = static_cast<ScalarArgType>(rand());
480480
auto a = fl::full({5, 6}, val, type);
481481

482-
ASSERT_TRUE(allClose(fl::full({1}, a.scalar<ScalarArgType>(), type), a(0, 0)))
482+
ASSERT_TRUE(allClose(fl::full({1}, a.template scalar<ScalarArgType>(), type), a(0, 0)))
483483
<< "dtype: " << type
484484
<< ", ScalarArgType: " << dtype_traits<ScalarArgType>::getName();
485485
}

0 commit comments

Comments
 (0)