pub trait VirtualTensorOperationsExpand<E: Numeric> {
// Required methods
fn __expand_as_tensor_map_method(
&self,
scope: &mut Scope,
) -> ExpandElementTyped<TensorMap<E>>;
fn __expand_read_method(
&self,
scope: &mut Scope,
index: ExpandElementTyped<u32>,
) -> ExpandElementTyped<Line<E>>;
fn __expand_read_window_method(
&self,
context: &mut Scope,
start: ExpandElementTyped<u32>,
end: ExpandElementTyped<u32>,
) -> SliceExpand<Line<E>, ReadOnly>;
fn __expand_write_method(
&self,
scope: &mut Scope,
index: ExpandElementTyped<u32>,
value: ExpandElementTyped<Line<E>>,
);
fn __expand_shape_method(
&self,
scope: &mut Scope,
axis: ExpandElementTyped<u32>,
) -> ExpandElementTyped<u32>;
fn __expand_stride_method(
&self,
scope: &mut Scope,
axis: ExpandElementTyped<u32>,
) -> ExpandElementTyped<u32>;
fn __expand_rank_method(&self, scope: &mut Scope) -> ExpandElementTyped<u32>;
fn __expand_len_method(&self, scope: &mut Scope) -> ExpandElementTyped<u32>;
fn __expand_buffer_len_method(
&self,
scope: &mut Scope,
) -> ExpandElementTyped<u32>;
}
Expand description
Expand trait for VirtualTensorOperations.
For now this needs to be manually implemented for any type that needs to become a virtual tensor.