PR feedback

This commit is contained in:
Dwayne Robinson 2020-03-27 19:32:47 -07:00
parent f1a062c292
commit 5972ce5566
2 changed files with 7 additions and 6 deletions

View file

@ -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
);
}

View file

@ -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));