Struct autograd::ops::gradient_descent_ops::StateKey[][src]

pub struct StateKey<'a>(pub &'a Tensor);

Key to access a state tensor. Stateful optimizers use this.

Trait Implementations

impl<'a> Eq for StateKey<'a>
[src]

impl<'a> PartialEq for StateKey<'a>
[src]

Compares addresses of the two tensors. This can be used for ordering-based data structures (e.g. BinaryTree).

This method tests for !=.

impl<'a> Ord for StateKey<'a>
[src]

Compares addresses of the two tensors. This can be used for ordering-based data structures (e.g. BinaryTree).

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<'a> PartialOrd for StateKey<'a>
[src]

Compares addresses of the two tensors. This can be used for ordering-based data structures (e.g. BinaryTree).

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl<'a> !Send for StateKey<'a>

impl<'a> !Sync for StateKey<'a>