Skip to content

Commit

Permalink
Change feature level of Resample3 to 6.4 (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceVignola authored Apr 11, 2024
1 parent d3918ea commit 5897d34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Libraries/DirectMLX.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 5897d34

Please sign in to comment.