Change feature level of Resample3 to 6.4 (#577)
This commit is contained in:
Родитель
d3918ea66a
Коммит
5897d34ae2
|
@ -3445,7 +3445,7 @@ namespace dml
|
|||
Span<const float> scales = {},
|
||||
Span<const float> inputPixelOffsets = {},
|
||||
Span<const float> outputPixelOffsets = {}
|
||||
#if DML_TARGET_VERSION >= 0x6300
|
||||
#if DML_TARGET_VERSION >= 0x6400
|
||||
, bool antialiased = false
|
||||
#endif
|
||||
)
|
||||
|
@ -3485,7 +3485,7 @@ namespace dml
|
|||
|
||||
TensorDesc outputTensor(inputTensor.dataType, std::move(outputSizes), builder->GetTensorPolicy());
|
||||
|
||||
#if DML_TARGET_VERSION >= 0x6300
|
||||
#if DML_TARGET_VERSION >= 0x6400
|
||||
DML_RESAMPLE3_OPERATOR_DESC desc = {};
|
||||
desc.RoundingDirection = roundingDirection;
|
||||
desc.Antialiased = antialiased;
|
||||
|
@ -3506,7 +3506,7 @@ namespace dml
|
|||
|
||||
detail::NodeOutput* const inputs[] = { input.Impl() };
|
||||
|
||||
#if DML_TARGET_VERSION >= 0x6300
|
||||
#if DML_TARGET_VERSION >= 0x6400
|
||||
detail::NodeID node = builder->CreateOperatorNode(DML_OPERATOR_RESAMPLE3, &desc, inputs);
|
||||
#elif DML_TARGET_VERSION >= 0x5100
|
||||
detail::NodeID node = builder->CreateOperatorNode(DML_OPERATOR_RESAMPLE2, &desc, inputs);
|
||||
|
|
Загрузка…
Ссылка в новой задаче