Skip to content

Commit df76aab

Browse files
authored
update api usage in example-usm (#4691)(#4690)
1 parent 1366a89 commit df76aab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/gpu/inference/cpp/example-usm/example-usm.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ int main(int argc, const char* argv[]) {
2626
auto input = torch::from_blob(
2727
input_ptr,
2828
{1, 3, 224, 224},
29-
nullptr,
30-
options,
31-
{stream.device()});
29+
options);
3230
std::cout << "input tensor created from usm " << std::endl;
3331
inputs.push_back(input);
3432

0 commit comments

Comments
 (0)