Skip to content

Commit 37d21d8

Browse files
committed
CI issues
1 parent 7af7995 commit 37d21d8

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

include/onnxruntime/core/session/onnxruntime_cxx_inline.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ inline SessionOptionsImpl<T>& SessionOptionsImpl<T>::SetExecutionMode(ExecutionM
749749

750750
template <typename T>
751751
inline SessionOptionsImpl<T>& SessionOptionsImpl<T>::SetLoadCancellationFlag(bool value) {
752-
ThrowOnError(GetApi().SessionOptionsSetLoadCancellationFlag(p_, value));
752+
ThrowOnError(GetApi().SessionOptionsSetLoadCancellationFlag(this->p_, value));
753753
return *this;
754754
}
755755

onnxruntime/core/graph/graph.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ Graph::Graph(const Model& owning_model,
12681268
#endif
12691269
}
12701270

1271-
if (owning_model_.IsCancellationFalgSet()) {
1271+
if (owning_model_.IsCancellationFlagSet()) {
12721272
ORT_THROW("Graph loading canceled due to user request.");
12731273
}
12741274

@@ -1304,7 +1304,7 @@ Graph::Graph(const Model& owning_model,
13041304
delete graph_proto_->mutable_sparse_initializer()->ReleaseCleared();
13051305
}
13061306
#endif
1307-
if (owning_model_.IsCancellationFalgSet()) {
1307+
if (owning_model_.IsCancellationFlagSet()) {
13081308
ORT_THROW("Graph loading canceled due to user request.");
13091309
}
13101310
}
@@ -1372,7 +1372,7 @@ Graph::Graph(const Model& owning_model,
13721372
}
13731373
}
13741374

1375-
if (owning_model_.IsCancellationFalgSet()) {
1375+
if (owning_model_.IsCancellationFlagSet()) {
13761376
ORT_THROW("Graph loading canceled due to user request.");
13771377
}
13781378

onnxruntime/core/graph/model.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Model {
148148
const NodeHashMap<std::string, std::unique_ptr<FunctionTemplate>>& GetModelLocalFunctionTemplates() const;
149149

150150
// Check for load cancellation.
151-
bool IsCancellationFalgSet() const noexcept {
151+
bool IsCancellationFlagSet() const noexcept {
152152
return load_cancellation_flag_ && *load_cancellation_flag_;
153153
}
154154

onnxruntime/core/session/inference_session.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,8 @@ void InferenceSession::ConstructorCommon(const SessionOptions& session_options,
387387
#if !defined(ORT_MINIMAL_BUILD)
388388
// Update the number of steps for the graph transformer manager using the "finalized" session options
389389
ORT_THROW_IF_ERROR(graph_transformer_mgr_.SetSteps(session_options_.max_num_graph_transformation_steps));
390-
#endif
391-
392390
graph_transformer_mgr_.SetLoadCancellationFlagRef(*session_options_.load_cancellation_flag);
391+
#endif
393392

394393
#if !defined(ORT_MINIMAL_BUILD) || defined(ORT_EXTENDED_MINIMAL_BUILD)
395394
{

0 commit comments

Comments
 (0)