!24635 [MS][LITE]add commons for call op

Merge pull request !24635 from mengyuanli/add_call_definition
This commit is contained in:
i-robot 2021-10-11 08:22:58 +00:00 committed by Gitee
commit 4ee7464c5e
1 changed files with 3 additions and 1 deletions

View File

@ -23,12 +23,14 @@
namespace mindspore {
namespace ops {
constexpr auto kNameCall = "call";
/// \brief Call op means function call in the MindIR. This operator is defined for serialization.
class MS_CORE_API Call : public PrimitiveC {
public:
/// \brief Constructor.
Call() : PrimitiveC(kNameCall) {}
/// \brief Destructor.
~Call() = default;
MS_DECLARE_PARENT(Call, PrimitiveC);
void Init() {}
};
} // namespace ops
} // namespace mindspore