Skip to content

Commit

Permalink
Removed unneeded ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Aug 11, 2024
1 parent dae6d40 commit a22bba2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/onnxruntime/inference_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,6 @@ def create_input_tensor(input_feed, refs)
type_enum = FFI::TensorElementDataType[:string]
check_status api[:CreateTensorAsOrtValue].call(@allocator.read_pointer, input_node_dims, shape.size, type_enum, input_tensor[idx])
check_status api[:FillStringTensor].call(input_tensor[idx].read_pointer, input_tensor_values, str_ptrs.size)

refs << str_ptrs
else
tensor_type = tensor_types[inp[:type]]

Expand Down

0 comments on commit a22bba2

Please sign in to comment.