Skip to content

Commit 22ad881

Browse files
yhna940yhna941
authored andcommitted
feat: add deterministic alg flag
1 parent 2788611 commit 22ad881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtorch.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ ModelInstanceState::Execute(
16181618

16191619
// enable/disable deterministic algorithms
16201620
at::globalContext().setDeterministicAlgorithms(
1621-
model_state_->EnableDeterministicAlgorithms(), /*warn_only=*/false);
1621+
model_state_->EnableDeterministicAlgorithms(), false /* warn_only */);
16221622

16231623
// JIT. No change is made unless parameter is explicitly set.
16241624
if (std::get<0>(model_state_->EnabledJitProfiling())) {

0 commit comments

Comments
 (0)