Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
dyastremsky authored and mc-nv committed Jun 7, 2023
1 parent fe0f318 commit 550cf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libtorch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ ModelInstanceState::SetInputTensors(
const auto torch_dtype =
ConvertDataTypeToTorchType(batch_input.DataType());
torch::TensorOptions options{torch_dtype.second};
auto updated_options = (memory_type == TRITONSERVER_MEMORY_GPU)
auto updated_options = (dst_memory_type == TRITONSERVER_MEMORY_GPU)
? options.device(torch::kCUDA, device_.index())
: options.device(torch::kCPU);

Expand Down

0 comments on commit 550cf62

Please sign in to comment.