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 ec348bb commit ef59839Copy full SHA for ef59839
examples/tensor/main.cpp
@@ -67,7 +67,7 @@ void test1(const bool is_cpu) {
67
}
68
69
auto shape_tensor = t1.shape();
70
- auto shape = shape_tensor.get_data<int32_t>()[0];
+ auto shape = shape_tensor.get_data<int64_t>()[0];
71
if(shape == ndim) {
72
std::cout << "tensor::get_tensor() test1-5: pass" << std::endl;
73
} else {
0 commit comments