Skip to content

Commit e451fb7

Browse files
fixing bug with multi-threaded access for variable length string arrays for onnx models. (#6537)
1 parent 6708456 commit e451fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML.OnnxTransformer/OnnxTransform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ private class NamedOnnxValueGetterVec<T> : INamedOnnxValueGetter
805805
public NamedOnnxValueGetterVec(DataViewRow input, int colIndex, OnnxShape tensorShape)
806806
{
807807
_srcGetter = input.GetGetter<VBuffer<T>>(input.Schema[colIndex]);
808-
_tensorShape = tensorShape;
808+
_tensorShape = new OnnxShape(tensorShape);
809809
_colName = input.Schema[colIndex].Name;
810810
_vBuffer = default;
811811
_vBufferDense = default;

0 commit comments

Comments
 (0)