Struct SymTensor Copy item path Source pub struct SymTensor {
pub node_id: usize ,
pub graph: Rc <RefCell <Graph >>,
pub dtype: DtypeRepr ,
pub shape: Shape ,
}Expand description A symbolic tensor handle. Every layer operation on a SymTensor records
itself in the shared Graph and returns a new SymTensor pointing to
the new node. Cloning is cheap — it shares the graph via Rc.
This tensor’s node index in graph.
The shared graph this tensor’s operations record into.
Output shape of this tensor. None in a slot means a dynamic/unknown
dimension (e.g. the batch axis).
Create an input placeholder, returning both the tensor and the shared
graph handle. Keep the graph handle to inspect the result after tracing.
Use None for dynamic dimensions (e.g. the batch axis):
ⓘ SymTensor::input(DtypeRepr::F32, vec! [None , Some (784 )])Number of dimensions of this tensor.
Record a custom op whose output shape is determined by CustomOp::infer_output_shape .
self is the primary (first) input. Pass additional inputs via
other_inputs. Pass dtype to override the output element type;
defaults to the primary input’s dtype.
Performs copy-assignment from
source.
Read more This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
This layer’s output type.
Applies this layer to input.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more 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.