Class RandomNormal
Defined in File random_normal.h
Inheritance Relationships
Base Type
public mindspore::ops::BaseOperator
Class Documentation
-
class RandomNormal : public mindspore::ops::BaseOperator
RandomNormal defined RandomNormal operator prototype of lite.
Public Functions
-
inline RandomNormal()
Constructor.
-
void Init(float seed, float mean, float scale)
Method to init the op’s attributes.
- 参数
seed – [in] Define random seed.
mean – [in] Define random mean.
scale – [in] Define random standard deviation.
-
void set_seed(float seed)
Method to set seed attributes.
- 参数
seed – [in] Define random seed.
-
void set_mean(float mean)
Method to set mean attributes.
- 参数
mean – [in] Define random mean.
-
void set_scale(float scale)
Method to set scale attributes.
- 参数
mean – [in] Define random standard deviation.
-
float get_seed() const
Method to get seed attributes.
- 返回
seed attributes.
-
float get_mean() const
Method to get mean attributes.
- 返回
mean attributes.
-
float get_scale() const
Method to get scale attributes.
- 返回
scale attributes.
-
inline RandomNormal()