Skip to content

Commit

Permalink
Debug hang
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 11, 2024
1 parent 5dad404 commit 7f89707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/onnxruntime/inference_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def ort_string(str)
def env
# use mutex for thread-safety
Utils.mutex.synchronize do
puts "start sync"
@@env ||= begin
puts "begin"
env = ::FFI::MemoryPointer.new(:pointer)
Expand All @@ -351,6 +352,8 @@ def env
puts "end"
env
end
puts "end sync"
@@env
end
end
end
Expand Down

0 comments on commit 7f89707

Please sign in to comment.