Class CellBase
Defined in File cell.h
Inheritance Relationships
Derived Types
public mindspore::Cell< GraphCell >(Template Class Cell)public mindspore::Cell< T >(Template Class Cell)
Class Documentation
-
class CellBase
Subclassed by mindspore::Cell< GraphCell >, mindspore::Cell< T >
Public Functions
-
CellBase() = default
Constructor of Cellbase.
-
virtual ~CellBase() = default
Destructor of Cellbase.
-
inline virtual std::vector<Output> Construct(const std::vector<Input> &inputs)
Construct using inputs.
- 参数
inputs – [in] Vector of inputs.
- 返回
Vector of outputs.
-
virtual std::shared_ptr<CellBase> Clone() const = 0
Clone a cellbase.
- 返回
Shared pointer of Cellbase.
-
inline virtual Status Run(const std::vector<MSTensor> &inputs, std::vector<MSTensor> *outputs)
Run a cellbase.
- 参数
inputs – [in] Vector of MSTensor as inputs.
outputs – [in] Vector of MSTensor as outputs.
- 返回
Status of the operation.
-
CellBase() = default