Class AbstractScalar
- Defined in File abstract.h 
Inheritance Relationships
Base Type
- public mindspore::api::AbstractBase(Class AbstractBase)
Class Documentation
- 
class AbstractScalar : public mindspore::api::AbstractBase
- AbstractScalar describes a scalar's type and value. - Public Functions - 
AbstractScalar(const ValuePtr &value, const TypePtr &type)
- Constructs an AbstractScalar with the given value and type. - 参数
- value – [in] The value. 
- type – [in] The type. 
 
 
 - 
explicit AbstractScalar(const TypePtr &type)
- Constructs an AbstractScalar with the given type. - 参数
- type – [in] The type. 
 
 - 
explicit AbstractScalar(const ValuePtr &value)
- Constructs an AbstractScalar with the given value. - 参数
- value – [in] The value. 
 
 - 
explicit AbstractScalar(int64_t value)
- Constructs an AbstractScalar with an int64 value. - 参数
- value – [in] The int64 value. 
 
 - 
explicit AbstractScalar(float value)
- Constructs an AbstractScalar with a float value. - 参数
- value – [in] The float value. 
 
 - 
explicit AbstractScalar(bool value)
- Constructs an AbstractScalar with a bool value. - 参数
- value – [in] The boolean value. 
 
 - 
explicit AbstractScalar(const std::string &value)
- Constructs an AbstractScalar with a string value. - 参数
- value – [in] The string value. 
 
 
- 
AbstractScalar(const ValuePtr &value, const TypePtr &type)