提交 f4d70957 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!1719 fix codex of no destructor problem

Merge pull request !1719 from xiefangqi/xfq_fix_codex
......@@ -88,6 +88,8 @@ class NodePass : public Pass {
// Default DFS traversal
explicit NodePass(Order order = Order::DFS) { traversalOrder_ = order; }
~NodePass() = default;
// Run the transformation pass against the execution tree.
// @param tree - Pointer to the execution tree to be transformed.
// @param modified - Pointer to the modified flag,
......
......@@ -35,6 +35,8 @@ class LookupOp : public TensorOp {
// @param WordIdType default_id, id to lookup if a word is not in vocab
explicit LookupOp(std::shared_ptr<Vocab> vocab, WordIdType default_id = Vocab::kSpecialTokens::unk);
~LookupOp() = default;
// perform actual lookup on each tensor
// @param const std::shared_ptr<Tensor> &input
// @param std::shared_ptr<Tensor> *output
......
......@@ -71,6 +71,8 @@ class Vocab {
// @param std::unordered_map<WordType, WordIdType> map - sanitized word2id map
explicit Vocab(std::unordered_map<WordType, WordIdType> map);
~Vocab() = default;
// enum type that holds all special tokens, add more if needed
enum kSpecialTokens : WordIdType { pad = 0, unk = 1, num_tokens = 2 };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册