fix hardcoded type (#10205)

This commit is contained in:
ashari4 2022-01-06 09:28:22 -08:00 committed by GitHub
parent 7b5464ed7b
commit 4ab891999a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ OrtValue create_ort_value(
{1,},
&ort_val);
auto* ort_tensor = ort_val.GetMutable<onnxruntime::Tensor>();
CopyVectorToTensor<int64_t>(invoker, &val, 1, *ort_tensor);
CopyVectorToTensor<T>(invoker, &val, 1, *ort_tensor);
return ort_val;
}