fix a hardcode type (#9337)

This commit is contained in:
Tang, Cheng 2021-10-12 13:44:46 -07:00 committed by GitHub
parent d5c5c4fa50
commit f0bc35c4ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,7 +181,7 @@ at::Tensor empty__memory_format(
auto& invoker = GetORTInvoker(*device_opt);
CreateMLValue(
invoker.GetCurrentExecutionProvider().GetAllocator(0, OrtMemTypeDefault),
ort_scalar_type_from_aten(at::kFloat),
ort_scalar_type_from_aten(*dtype_opt),
size.vec(),
&ot);