mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
PR feedback
This commit is contained in:
parent
f1a062c292
commit
5972ce5566
2 changed files with 7 additions and 6 deletions
|
|
@ -500,11 +500,12 @@ namespace Dml
|
|||
std::string partitionKernelPrefix = std::to_string(m_partitionKernelPrefixVal++) + "_";
|
||||
uint32_t deviceDataTypeMask = GetSuppportedDeviceDataTypeMask();
|
||||
|
||||
return PartitionGraph(graph,
|
||||
return PartitionGraph(
|
||||
graph,
|
||||
*m_internalRegInfoMap,
|
||||
registries,
|
||||
deviceDataTypeMask,
|
||||
m_kernelRegistry.get(),
|
||||
registries,
|
||||
deviceDataTypeMask,
|
||||
m_kernelRegistry.get(),
|
||||
partitionKernelPrefix
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,14 +155,14 @@ namespace OperatorHelper
|
|||
memcpy(data, tensor.GetByteData(), elementByteSize);
|
||||
}
|
||||
|
||||
int64_t ReadScalarTensorAsInt64(const MLOperatorTensor& tensor)
|
||||
int64_t ReadScalarTensorCastToInt64(const MLOperatorTensor& tensor)
|
||||
{
|
||||
std::byte tensorBytes[8];
|
||||
ReadScalarTensorData(tensor, /*out*/ &tensorBytes, sizeof(tensorBytes));
|
||||
return CastToInt64(tensor.GetTensorDataType(), &tensorBytes);
|
||||
}
|
||||
|
||||
double ReadScalarTensorAsFloat64(const MLOperatorTensor& tensor)
|
||||
double ReadScalarTensorCastToFloat64(const MLOperatorTensor& tensor)
|
||||
{
|
||||
std::byte tensorBytes[8];
|
||||
ReadScalarTensorData(tensor, /*out*/ &tensorBytes, sizeof(tensorBytes));
|
||||
|
|
|
|||
Loading…
Reference in a new issue