Skip to content

Commit 860ce51

Browse files
authored
fix bug in example-app.cpp (#1462)
1 parent b371bfc commit 860ce51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cpu/inference/cpp/example-app.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main(int argc, const char* argv[]) {
1717
inputs.push_back(input);
1818

1919
at::Tensor output = module.forward(inputs).toTensor();
20-
std::cout << output_tensor.slice(/*dim=*/1, /*start=*/0, /*end=*/5) << std::endl;
20+
std::cout << output.slice(/*dim=*/1, /*start=*/0, /*end=*/5) << std::endl;
2121

2222
return 0;
2323
}

0 commit comments

Comments
 (0)