Browse Source

!1725 Add destructor to Feature

Merge pull request !1725 from xiefangqi/xfq_fix_codex2
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
9cb2d0cfa2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mindspore/ccsrc/dataset/engine/gnn/feature.h

+ 2
- 0
mindspore/ccsrc/dataset/engine/gnn/feature.h View File

@@ -33,6 +33,8 @@ class Feature {
// @param std::shared_ptr<Tensor> value - feature value
Feature(FeatureType type_name, std::shared_ptr<Tensor> value);

~Feature() = default;

// Get feature value
// @return std::shared_ptr<Tensor> *out_value - feature value
const std::shared_ptr<Tensor> Value() const { return value_; }


Loading…
Cancel
Save