Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfucn committed Jul 2, 2024
1 parent b845171 commit 5bf1322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/test/optimizer/gpu_op_prepack_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ inline Status GetOrtValue(const NodeArg* arg, const Graph& graph, OrtValue& ort_
ORT_RETURN_IF_NOT(graph.GetInitializedTensor(arg->Name(), tensor_proto),
"Missing initializer for ", arg->Name());

const auto path_str = graph.ModelPath().ToPathString();
const onnxruntime::Path& model_path = graph.ModelPath();
const auto path_str = model_path.ToPathString();

return utils::TensorProtoToOrtValue(
Env::Default(), path_str.c_str(), *tensor_proto,
Expand Down

0 comments on commit 5bf1322

Please sign in to comment.