Skip to content

Commit

Permalink
Hide Col2Im registration behind DML_TARGET_VERSION 6300 (#18829)
Browse files Browse the repository at this point in the history
Hide Col2Im registration behind DML_TARGET_VERSION 6300

Co-authored-by: Sheil Kumar <[email protected]>
  • Loading branch information
2 people authored and jeffbloo committed Jan 4, 2024
1 parent d2f7a5b commit b2f81c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
namespace Dml
{

#if DML_TARGET_VERSION >= 0x6300

class DmlOperatorCol2Im : public DmlOperator, public Col2ImHelper
{
public:
Expand Down Expand Up @@ -56,4 +58,6 @@ class DmlOperatorCol2Im : public DmlOperator, public Col2ImHelper

DML_OP_DEFINE_CREATION_FUNCTION(Col2Im, DmlOperatorCol2Im);

#endif // DML_TARGET_VERSION >= 0x6300

} // namespace Dml
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,11 @@ DML_OP_EXTERN_CREATION_FUNCTION(DynamicQuantizeLinear);
DML_OP_EXTERN_CREATION_FUNCTION(MatMulInteger);
DML_OP_EXTERN_CREATION_FUNCTION(ConvInteger);
DML_OP_EXTERN_CREATION_FUNCTION(Trilu);

#if DML_TARGET_VERSION >= 0x6300
DML_OP_EXTERN_CREATION_FUNCTION(Col2Im);
#endif

DML_OP_EXTERN_CREATION_FUNCTION(Shape);
DML_OP_EXTERN_CREATION_FUNCTION(Size);
DML_OP_EXTERN_CREATION_FUNCTION(Attention);
Expand Down Expand Up @@ -771,7 +775,10 @@ constexpr static OperatorRegistrationInformation operatorRegistrationInformation
{REG_INFO( 16, ScatterND, typeNameListScatterGatherND, supportedTypeListScatterGatherND, DmlGraphSupport::Supported, requiredConstantCpuInputs(), std::nullopt, QueryScatter)},
{REG_INFO( 9, EyeLike, typeNameListEyeLike, supportedTypeListEyeLike, DmlGraphSupport::Supported)},
{REG_INFO( 14, Trilu, typeNameListDefault, supportedTypeListAllScalars, DmlGraphSupport::Supported, requiredConstantCpuInputs(1))},

#if DML_TARGET_VERSION >= 0x6300
{REG_INFO( 18, Col2Im, typeNameListDefault, supportedTypeListAllScalars, DmlGraphSupport::Supported, requiredConstantCpuInputs(1, 2))},
#endif

// Data reorganization that merely changes the dimensions while keeping the data identical.
{REG_INFO_COPY( 7, Identity, typeNameListDefault, supportedTypeListAllScalars, DmlGraphSupport::Supported)},
Expand Down

0 comments on commit b2f81c8

Please sign in to comment.