Struct auto_diff::op::Op

source · []
pub struct Op { /* private fields */ }
Expand description

Op is the Rc wrapper of typed op trait

Implementations

Read the input, do the calculation and write result to output. Called by compute_grapyh.

Given input and output_grad, return input_grad (forward view) Called by compute_grapyh.

access weight/paramenters

set parameters

return gradient for weight/parameters.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.