Struct primitiv::Parameter [] [src]

pub struct Parameter { /* fields omitted */ }

Struct to manage a trainable tensor parameter.

Methods

impl Parameter
[src]

[src]

Creates an invalid parameter object.

[src]

Creates a new Parameter object.

[src]

Creates a new Parameter object.

[src]

Creates a new Parameter object.

[src]

Creates a new Parameter object.

[src]

Initializes the Parameter object.

[src]

Initializes the Parameter object.

[src]

Initializes the Parameter object.

[src]

Initializes the Parameter object.

[src]

Loads parameters from specified file.

[src]

Loads parameters from specified file.

[src]

Saves current parameters into specified file.

[src]

Returns whether the parameter is valid or not.

[src]

Set all gradients to 0.

[src]

Adds a new optional statistics tensor.

[src]

Checks whether the statistics with name name exists or not.

[src]

Returns the shape of the parameter.

[src]

Returns the Device object to manage the internal memory.

[src]

Returns the values of the parameter.

[src]

Returns the current gradient of the parameter.

[src]

Returns the current opotional statistics tensor specified by given name.

Trait Implementations

impl Debug for Parameter
[src]

[src]

Formats the value using the given formatter. Read more

impl Wrap<primitivParameter_t> for Parameter
[src]

impl Drop for Parameter
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Parameter

impl !Sync for Parameter