Class RandomNormal

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.

Parameters
  • 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.

Parameters

seed[in] Define random seed.

void set_mean(float mean)

Method to set mean attributes.

Parameters

mean[in] Define random mean.

void set_scale(float scale)

Method to set scale attributes.

Parameters

mean[in] Define random standard deviation.

float get_seed() const

Method to get seed attributes.

Returns

seed attributes.

float get_mean() const

Method to get mean attributes.

Returns

mean attributes.

float get_scale() const

Method to get scale attributes.

Returns

scale attributes.