Struct autograd::tensor::Input [−][src]
pub struct Input { /* fields omitted */ }
Expand description
A decorated Tensor
passed to TensorBuilder::set_inputs
.
Use new
to create an immutable input, or new_mut
to create a modifiable one.
See also TensorBuilder.
Implementations
Instantiates a new immutable Input
object.
Run-time value of val
is passed as an ndarray::ArrayView
in Op::compute
.
Instantiates a new mutable Input
object.
Run-time value of val
is passed as an ArrayViewMut
in Op::compute
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Input
impl UnwindSafe for Input
Blanket Implementations
Mutably borrows from an owned value. Read more