Skip to content

Commit

Permalink
getOpVersion, trait comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cferry-AMD committed Jun 12, 2024
1 parent 876e3a0 commit 4328b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Dialect/ONNX/ONNX.td
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ def ONNXConstantOpFromDenseAttr: NativeCodeCall<
class ONNX_Op<string mnemonic, list<Trait> traits = []> :
Op<ONNX_Dialect, mnemonic, traits> ;

// Trait to specify which operation set a given operator was introduced in.
// For multi-versioned operators, this also appears in the operator's name.
// Trait to specify which operation set introduced a revision of an operator.
// For multi-versioned operators, the version also appears in the operator's name.
class OpVersionTrait<int version>
: ParamNativeOpTrait<"OpVersionTrait", !cast<string>(version)>;

Expand Down
2 changes: 1 addition & 1 deletion src/Dialect/ONNX/ONNXTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class OpVersionTrait {
template <typename ConcreteType>
class Impl : public OpTrait::TraitBase<ConcreteType, Impl> {
public:
int getOpsetMinVersion() { return version; }
int getOpVersion() { return version; }
};
};

Expand Down

0 comments on commit 4328b37

Please sign in to comment.