MultiBackend

Struct MultiBackend 

Source
pub struct MultiBackend;

Trait Implementations§

Source§

impl ActivationOps<MultiBackend> for MultiBackend

Source§

fn relu(tensor: MultiFloatTensor) -> MultiFloatTensor

Applies the ReLU activation function. Read more
Source§

fn gelu(tensor: MultiFloatTensor) -> MultiFloatTensor

Applies the Gelu activation function. Read more
Source§

fn gelu_backward( tensor: MultiFloatTensor, grad: MultiFloatTensor, ) -> MultiFloatTensor

Applies the Gelu activation function backward. Read more
Source§

fn sigmoid(tensor: MultiFloatTensor) -> MultiFloatTensor

Applies the Sigmoid activation function. Read more
Source§

fn log_sigmoid(tensor: MultiFloatTensor) -> MultiFloatTensor

Applies the LogSigmoid activation function. Read more
Source§

fn leaky_relu( tensor: <B as Backend>::FloatTensorPrimitive, negative_slope: <B as Backend>::FloatElem, ) -> <B as Backend>::FloatTensorPrimitive

Applies the LeakyReLU activation function. Read more
Source§

fn relu_backward( output: <B as Backend>::FloatTensorPrimitive, grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Applies the ReLU activation function backward. Read more
Source§

fn prelu( tensor: <B as Backend>::FloatTensorPrimitive, alpha: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Applies the PReLu activation function. Read more
Source§

fn sigmoid_backward( output: <B as Backend>::FloatTensorPrimitive, grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Applies the Sigmoid activation function backward. Read more
Source§

fn hard_sigmoid( tensor: <B as Backend>::FloatTensorPrimitive, alpha: <B as Backend>::FloatElem, beta: <B as Backend>::FloatElem, ) -> <B as Backend>::FloatTensorPrimitive

Applies the hard Sigmoid activation function. Read more
Source§

fn log_sigmoid_backward( x: <B as Backend>::FloatTensorPrimitive, grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Applies the LogSigmoid activation function backward. Read more
Source§

impl Backend for MultiBackend

Source§

type Device = MultiDevice

Device type.
Source§

type FloatTensorPrimitive = MultiFloatTensor

Tensor primitive to be used for all float operations.
Source§

type IntTensorPrimitive = MultiIntTensor

Tensor primitive to be used for all int operations.
Source§

type BoolTensorPrimitive = MultiBoolTensor

Tensor primitive to be used for all bool operations.
Source§

type QuantizedTensorPrimitive = MultiIntTensor

Tensor primitive to be used for all quantized operations.
Source§

type FloatElem = f32

Default float element type.
Source§

type IntElem = i32

Int element type.
Source§

type BoolElem = u8

Tensor primitive to be used for all bool operations.
Source§

type QuantizedEncoding = f32

Quantized tensor encoding type.
Source§

fn name(device: &Self::Device) -> String

Name of the backend.
Source§

fn seed(_seed: u64)

Seed the backend.
Source§

fn ad_enabled() -> bool

If autodiff is enabled.
Source§

fn sync(_device: &Self::Device)

Sync the backend, ensure that all computation are finished.
Source§

impl BoolTensorOps<MultiBackend> for MultiBackend

Source§

fn bool_from_data(data: TensorData, device: &MultiDevice) -> MultiBoolTensor

Creates a tensor from the data structure. Read more
Source§

fn bool_repeat_dim( tensor: MultiBoolTensor, dim: usize, times: usize, ) -> MultiBoolTensor

Repeats one dimension of the tensor a given number of times along that dimension. Read more
Source§

async fn bool_into_data(tensor: MultiBoolTensor) -> TensorData

Converts the tensor to a data structure. Read more
Source§

fn bool_to_device( tensor: MultiBoolTensor, device: &MultiDevice, ) -> MultiBoolTensor

Moves the tensor to the device.
Source§

fn bool_reshape(tensor: MultiBoolTensor, shape: Shape) -> MultiBoolTensor

Reshapes the tensor. Read more
Source§

fn bool_device(tensor: &MultiBoolTensor) -> MultiDevice

Gets the device of the tensor. Read more
Source§

fn bool_empty(shape: Shape, device: &MultiDevice) -> MultiBoolTensor

Creates a new bool tensor. Read more
Source§

fn bool_slice( tensor: MultiBoolTensor, ranges: &[Range<usize>], ) -> MultiBoolTensor

Gets the values from the tensor for the given ranges. Read more
Source§

fn bool_slice_assign( tensor: MultiBoolTensor, ranges: &[Range<usize>], value: MultiBoolTensor, ) -> MultiBoolTensor

Sets the values in the tensor for the given ranges. Read more
Source§

fn bool_cat(tensors: Vec<MultiBoolTensor>, dim: usize) -> MultiBoolTensor

Concatenates the tensors along the given dimension. Read more
Source§

fn bool_equal(lhs: MultiBoolTensor, rhs: MultiBoolTensor) -> MultiBoolTensor

Equates the two tensors. Read more
Source§

fn bool_not(tensor: MultiBoolTensor) -> MultiBoolTensor

Inverses boolean values. Read more
Source§

fn bool_and(lhs: MultiBoolTensor, rhs: MultiBoolTensor) -> MultiBoolTensor

Executes the logical and (&&) operation on two boolean tensors. Read more
Source§

fn bool_or(lhs: MultiBoolTensor, rhs: MultiBoolTensor) -> MultiBoolTensor

Executes the logical or (||) operation on two boolean tensors. Read more
Source§

fn bool_into_int(tensor: MultiBoolTensor) -> MultiIntTensor

Converts bool tensor to int tensor. Read more
Source§

fn bool_into_float(tensor: MultiBoolTensor) -> MultiFloatTensor

Converts bool tensor to float tensor. Read more
Source§

fn bool_swap_dims( tensor: MultiBoolTensor, dim1: usize, dim2: usize, ) -> MultiBoolTensor

Swaps two dimensions of a bool tensor. Read more
Source§

fn bool_permute(tensor: MultiBoolTensor, axes: &[usize]) -> MultiBoolTensor

Permutes the dimensions of a tensor. Read more
Source§

fn bool_flip(tensor: MultiBoolTensor, axes: &[usize]) -> MultiBoolTensor

Reverse the order of elements in a tensor along the given axes. Read more
Source§

async fn bool_argwhere(tensor: MultiBoolTensor) -> MultiIntTensor

Compute the indices of the elements that are non-zero, grouped by element. Read more
Source§

fn bool_expand(tensor: MultiBoolTensor, shape: Shape) -> MultiBoolTensor

Broadcasts the bool tensor to the given shape.
Source§

fn bool_not_equal( lhs: <B as Backend>::BoolTensorPrimitive, rhs: <B as Backend>::BoolTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Element-wise non-equality comparison. Read more
Source§

fn bool_transpose( tensor: <B as Backend>::BoolTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Transposes a bool tensor. Read more
Source§

fn bool_any( tensor: <B as Backend>::BoolTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the boolean tensor evaluates to True. Read more
Source§

fn bool_any_dim( tensor: <B as Backend>::BoolTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the boolean tensor evaluates to True along a given dimension dim. Read more
Source§

fn bool_all( tensor: <B as Backend>::BoolTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the boolean tensor evaluate to True. Read more
Source§

fn bool_all_dim( tensor: <B as Backend>::BoolTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the boolean tensor evaluate to True along a given dimension dim. Read more
Source§

impl Clone for MultiBackend

Source§

fn clone(&self) -> MultiBackend

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MultiBackend

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MultiBackend

Source§

fn default() -> MultiBackend

Returns the “default value” for a type. Read more
Source§

impl FloatTensorOps<MultiBackend> for MultiBackend

Source§

fn float_from_data(data: TensorData, device: &MultiDevice) -> MultiFloatTensor

Creates a new tensor from the data structure. Read more
Source§

fn float_random( shape: Shape, distribution: Distribution, device: &MultiDevice, ) -> MultiFloatTensor

Creates a new tensor with random values. Read more
Source§

fn float_repeat_dim( tensor: MultiFloatTensor, dim: usize, times: usize, ) -> MultiFloatTensor

Repeat the tensor along the given dimension. Read more
Source§

fn float_zeros(shape: Shape, device: &MultiDevice) -> MultiFloatTensor

Creates a new tensor with zeros. Read more
Source§

fn float_ones(shape: Shape, device: &MultiDevice) -> MultiFloatTensor

Creates a new tensor with ones. Read more
Source§

async fn float_into_data(tensor: MultiFloatTensor) -> TensorData

Converts the tensor to a data structure. Read more
Source§

fn float_device(tensor: &MultiFloatTensor) -> MultiDevice

Gets the device of the tensor. Read more
Source§

fn float_to_device( tensor: MultiFloatTensor, device: &MultiDevice, ) -> MultiFloatTensor

Moves the tensor to the given device. Read more
Source§

fn float_empty(shape: Shape, device: &MultiDevice) -> MultiFloatTensor

Creates an empty tensor with the given shape. Read more
Source§

fn float_add(lhs: MultiFloatTensor, rhs: MultiFloatTensor) -> MultiFloatTensor

Adds two tensors together. Read more
Source§

fn float_add_scalar(lhs: MultiFloatTensor, rhs: f32) -> MultiFloatTensor

Adds a scalar to a tensor. Read more
Source§

fn float_sub(lhs: MultiFloatTensor, rhs: MultiFloatTensor) -> MultiFloatTensor

Subtracts two tensors. Read more
Source§

fn float_sub_scalar(lhs: MultiFloatTensor, rhs: f32) -> MultiFloatTensor

Subtracts a scalar from a tensor. Read more
Source§

fn float_mul(lhs: MultiFloatTensor, rhs: MultiFloatTensor) -> MultiFloatTensor

Multiplies two tensors together element-wise.
Source§

fn float_mul_scalar(lhs: MultiFloatTensor, rhs: f32) -> MultiFloatTensor

Multiplies a tensor by a scalar. Read more
Source§

fn float_div(lhs: MultiFloatTensor, rhs: MultiFloatTensor) -> MultiFloatTensor

Divides two tensors element-wise. Read more
Source§

fn float_div_scalar(lhs: MultiFloatTensor, rhs: f32) -> MultiFloatTensor

Divides a tensor by a scalar. Read more
Source§

fn float_remainder( lhs: MultiFloatTensor, rhs: MultiFloatTensor, ) -> MultiFloatTensor

Computes the remainder of division between two tensors element-wise. Read more
Source§

fn float_remainder_scalar(lhs: MultiFloatTensor, rhs: f32) -> MultiFloatTensor

Computes the modulus of a tensor given a scalar. Read more
Source§

fn float_matmul( lhs: MultiFloatTensor, rhs: MultiFloatTensor, ) -> MultiFloatTensor

Multiplies two tensors together using matrix multiplication. Read more
Source§

fn float_neg(tensor: MultiFloatTensor) -> MultiFloatTensor

Negates a tensor element-wise.
Source§

fn float_recip(tensor: MultiFloatTensor) -> MultiFloatTensor

Calculates the reciprocals element-wise
Source§

fn float_swap_dims( tensor: MultiFloatTensor, dim1: usize, dim2: usize, ) -> MultiFloatTensor

Swaps two dimensions of a tensor. Read more
Source§

fn float_reshape(tensor: MultiFloatTensor, shape: Shape) -> MultiFloatTensor

Reshapes a tensor. Read more
Source§

fn float_gather( dim: usize, tensor: MultiFloatTensor, indices: MultiIntTensor, ) -> MultiFloatTensor

Gather elements from a tensor. Read more
Source§

fn float_scatter( dim: usize, tensor: MultiFloatTensor, indices: MultiIntTensor, value: MultiFloatTensor, ) -> MultiFloatTensor

Scatter elements into a tensor. Read more
Source§

fn float_select( tensor: MultiFloatTensor, dim: usize, indices: MultiIntTensor, ) -> MultiFloatTensor

Select tensor elements along the given dimension corresponding for the given indices. Read more
Source§

fn float_select_assign( tensor: MultiFloatTensor, dim: usize, indices: MultiIntTensor, value: MultiFloatTensor, ) -> MultiFloatTensor

Assign the selected elements along the given dimension corresponding for the given indices to the given value. Read more
Source§

fn float_slice( tensor: MultiFloatTensor, ranges: &[Range<usize>], ) -> MultiFloatTensor

Select tensor elements corresponding for the given ranges. Read more
Source§

fn float_slice_assign( tensor: MultiFloatTensor, ranges: &[Range<usize>], value: MultiFloatTensor, ) -> MultiFloatTensor

Assign the selected elements corresponding for the given ranges to the given value. Read more
Source§

fn float_mask_where( tensor: MultiFloatTensor, mask: MultiBoolTensor, value: MultiFloatTensor, ) -> MultiFloatTensor

Update the given tensor with the value tensor where the mask is true. Read more
Source§

fn float_mask_fill( tensor: MultiFloatTensor, mask: MultiBoolTensor, value: f32, ) -> MultiFloatTensor

Update the given tensor with the value where the mask is true. Read more
Source§

fn float_equal(lhs: MultiFloatTensor, rhs: MultiFloatTensor) -> MultiBoolTensor

Equal comparison of two tensors. Read more
Source§

fn float_equal_elem(lhs: MultiFloatTensor, rhs: f32) -> MultiBoolTensor

Equal comparison of a tensor and a scalar. Read more
Source§

fn float_greater( lhs: MultiFloatTensor, rhs: MultiFloatTensor, ) -> MultiBoolTensor

Greater than comparison of two tensors. Read more
Source§

fn float_greater_elem(lhs: MultiFloatTensor, rhs: f32) -> MultiBoolTensor

Greater than comparison of a tensor and a scalar. Read more
Source§

fn float_greater_equal( lhs: MultiFloatTensor, rhs: MultiFloatTensor, ) -> MultiBoolTensor

Greater than or equal comparison of two tensors. Read more
Source§

fn float_greater_equal_elem(lhs: MultiFloatTensor, rhs: f32) -> MultiBoolTensor

Greater than or equal comparison of a tensor and a scalar. Read more
Source§

fn float_lower(lhs: MultiFloatTensor, rhs: MultiFloatTensor) -> MultiBoolTensor

Less than comparison of two tensors. Read more
Source§

fn float_lower_elem(lhs: MultiFloatTensor, rhs: f32) -> MultiBoolTensor

Less than comparison of a tensor and a scalar. Read more
Source§

fn float_lower_equal( lhs: MultiFloatTensor, rhs: MultiFloatTensor, ) -> MultiBoolTensor

Less than or equal comparison of two tensors. Read more
Source§

fn float_lower_equal_elem(lhs: MultiFloatTensor, rhs: f32) -> MultiBoolTensor

Less than or equal comparison of a tensor and a scalar. Read more
Source§

fn float_mean(tensor: MultiFloatTensor) -> MultiFloatTensor

Mean of all elements in a tensor. Read more
Source§

fn float_sum(tensor: MultiFloatTensor) -> MultiFloatTensor

Sum of all elements in a tensor. Read more
Source§

fn float_sum_dim(tensor: MultiFloatTensor, dim: usize) -> MultiFloatTensor

Sum of all elements in a tensor along a dimension. Read more
Source§

fn float_mean_dim(tensor: MultiFloatTensor, dim: usize) -> MultiFloatTensor

Mean of all elements in a tensor along a dimension. Read more
Source§

fn float_prod(tensor: MultiFloatTensor) -> MultiFloatTensor

Product of all elements in a tensor. Read more
Source§

fn float_prod_dim(tensor: MultiFloatTensor, dim: usize) -> MultiFloatTensor

Product of all elements in a tensor along a dimension. Read more
Source§

fn float_argmax(tensor: MultiFloatTensor, dim: usize) -> MultiIntTensor

Gets the indices of the maximum elements of a tensor along an axis. Read more
Source§

fn float_argmin(tensor: MultiFloatTensor, dim: usize) -> MultiIntTensor

Gets the indices of the minimum elements of a tensor along an axis. Read more
Source§

fn float_max_dim(tensor: MultiFloatTensor, dim: usize) -> MultiFloatTensor

Gets the maximum elements of a tensor along an axis. Read more
Source§

fn float_max_dim_with_indices( tensor: MultiFloatTensor, dim: usize, ) -> (MultiFloatTensor, MultiIntTensor)

Gets the maximum elements of a tensor along an axis and their indices. Read more
Source§

fn float_min_dim(tensor: MultiFloatTensor, dim: usize) -> MultiFloatTensor

Gets the minimum elements of a tensor along an axis. Read more
Source§

fn float_min_dim_with_indices( tensor: MultiFloatTensor, dim: usize, ) -> (MultiFloatTensor, MultiIntTensor)

Gets the minimum elements of a tensor along an axis and their indices. Read more
Source§

fn float_exp(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with exponential values. Read more
Source§

fn float_log(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with natural logarithm values. Read more
Source§

fn float_log1p(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with logarithm values of (1 + Xi). Read more
Source§

fn float_powf_scalar(tensor: MultiFloatTensor, value: f32) -> MultiFloatTensor

Returns a new tensor with values raised to the power of float value. Read more
Source§

fn float_sqrt(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with square root values. Read more
Source§

fn float_abs(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with absolute values. Read more
Source§

fn float_cos(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with cosine values. Read more
Source§

fn float_sin(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with sine values. Read more
Source§

fn float_tanh(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with hyperbolic tangent values. Read more
Source§

fn float_round(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with rounded values. Read more
Source§

fn float_floor(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with floored values. Read more
Source§

fn float_ceil(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with ceiled values. Read more
Source§

fn float_erf(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns a new tensor with the error function values. Read more
Source§

fn float_cat(tensors: Vec<MultiFloatTensor>, dim: usize) -> MultiFloatTensor

Concatenates tensors along a dimension. Read more
Source§

fn float_clamp_min(tensor: MultiFloatTensor, min: f32) -> MultiFloatTensor

Clamps a tensor under a minimum value. Read more
Source§

fn float_clamp_max(tensor: MultiFloatTensor, max: f32) -> MultiFloatTensor

Clamps a tensor over a maximum value. Read more
Source§

fn float_clamp(tensor: MultiFloatTensor, min: f32, max: f32) -> MultiFloatTensor

Clamps a tensor between a minimum and maximum value. Read more
Source§

fn float_into_int(tensor: MultiFloatTensor) -> MultiIntTensor

Converts float tensor to int tensor. Read more
Source§

fn float_powf(lhs: MultiFloatTensor, rhs: MultiFloatTensor) -> MultiFloatTensor

Element-wise power with a FloatTensor. Read more
Source§

fn float_permute(tensor: MultiFloatTensor, axes: &[usize]) -> MultiFloatTensor

Permutes the dimensions of a tensor. Read more
Source§

fn float_flip(tensor: MultiFloatTensor, axes: &[usize]) -> MultiFloatTensor

Reverse the order of elements in a tensor along the given axes. Read more
Source§

fn float_sign(tensor: MultiFloatTensor) -> MultiFloatTensor

Returns the signs of the float tensor. Read more
Source§

fn float_expand(tensor: MultiFloatTensor, shape: Shape) -> MultiFloatTensor

Broadcasts the float tensor to the given shape.
Source§

fn float_sort( tensor: MultiFloatTensor, dim: usize, descending: bool, ) -> MultiFloatTensor

Sort the elements of the input tensor by value in along a given dimension. Read more
Source§

fn float_sort_with_indices( tensor: MultiFloatTensor, dim: usize, descending: bool, ) -> (MultiFloatTensor, MultiIntTensor)

Sort the elements of the input tensor by value in along a given dimension. Read more
Source§

fn float_argsort( tensor: MultiFloatTensor, dim: usize, descending: bool, ) -> MultiIntTensor

Returns the indices that sort the elements of the input tensor by value along a given dimension. Read more
Source§

fn float_cast(tensor: MultiFloatTensor, dtype: FloatDType) -> MultiFloatTensor

Converts a tensor to another floating point data type. Read more
Source§

fn float_full( shape: Shape, fill_value: <B as Backend>::FloatElem, device: &<B as Backend>::Device, ) -> <B as Backend>::FloatTensorPrimitive

Creates a tensor filled with given value. Read more
Source§

fn float_transpose( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Transposes a tensor. Read more
Source§

fn float_not_equal( lhs: <B as Backend>::FloatTensorPrimitive, rhs: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Element-wise non-equality comparison. Read more
Source§

fn float_not_equal_elem( lhs: <B as Backend>::FloatTensorPrimitive, rhs: <B as Backend>::FloatElem, ) -> <B as Backend>::BoolTensorPrimitive

Element-wise non-equality comparison with a scalar. Read more
Source§

fn float_detach( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Detaches a tensor from the computation graph.
Source§

fn float_set_require_grad( tensor: <B as Backend>::FloatTensorPrimitive, _require_grad: bool, ) -> <B as Backend>::FloatTensorPrimitive

Sets the require_grad flag of a tensor.
Source§

fn float_is_require_grad(_tensor: &<B as Backend>::FloatTensorPrimitive) -> bool

Returns the require_grad flag of a tensor.
Source§

fn float_powi( lhs: <B as Backend>::FloatTensorPrimitive, rhs: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Element-wise power with an IntTensor. Read more
Source§

fn float_powi_scalar( lhs: <B as Backend>::FloatTensorPrimitive, rhs: <B as Backend>::IntElem, ) -> <B as Backend>::FloatTensorPrimitive

raises a tensor to the power of an int scalar. Read more
Source§

fn float_tan( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Returns a new tensor with tangent values. Read more
Source§

fn float_cosh( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Returns a new tensor with hyperbolic cosine values. Read more
Source§

fn float_sinh( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Returns a new tensor with hyperbolic sine values. Read more
Source§

fn float_max( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Gets the maximum element of a tensor. Read more
Source§

fn float_min( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Gets the minimum element of a tensor. Read more
Source§

fn float_max_abs( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Gets the maximum absolute element of a tensor. Read more
Source§

fn float_max_abs_dim( tensor: <B as Backend>::FloatTensorPrimitive, dim: usize, ) -> <B as Backend>::FloatTensorPrimitive

Gets the maximum absolute elements of a tensor along an axis. Read more
Source§

fn float_any( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the float tensor evaluates to True. Read more
Source§

fn float_any_dim( tensor: <B as Backend>::FloatTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the float tensor evaluates to True along a given dimension dim. Read more
Source§

fn float_all( tensor: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the float tensor evaluate to True. Read more
Source§

fn float_all_dim( tensor: <B as Backend>::FloatTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the float tensor evaluate to True along a given dimension dim. Read more
Source§

impl IntTensorOps<MultiBackend> for MultiBackend

Source§

fn int_from_data(data: TensorData, device: &MultiDevice) -> MultiIntTensor

Creates a tensor from the data structure. Read more
Source§

fn int_repeat_dim( tensor: MultiIntTensor, dim: usize, times: usize, ) -> MultiIntTensor

Repeats the tensor along the given dimension the given number of times. Read more
Source§

async fn int_into_data(tensor: MultiIntTensor) -> TensorData

Converts the tensor to a data structure. Read more
Source§

fn int_to_device(tensor: MultiIntTensor, device: &MultiDevice) -> MultiIntTensor

Moves the tensor to the given device.
Source§

fn int_reshape(tensor: MultiIntTensor, shape: Shape) -> MultiIntTensor

Reshapes the tensor. Read more
Source§

fn int_device(tensor: &MultiIntTensor) -> MultiDevice

Gets the device of the tensor. Read more
Source§

fn int_empty(shape: Shape, device: &MultiDevice) -> MultiIntTensor

Creates a new int tensor. Read more
Source§

fn int_slice(tensor: MultiIntTensor, ranges: &[Range<usize>]) -> MultiIntTensor

Gets the element at the given indices. Read more
Source§

fn int_slice_assign( tensor: MultiIntTensor, ranges: &[Range<usize>], value: MultiIntTensor, ) -> MultiIntTensor

Sets the element at the given indices. Read more
Source§

fn int_cat(tensors: Vec<MultiIntTensor>, dim: usize) -> MultiIntTensor

Concatenates the given tensors along the given dimension. Read more
Source§

fn int_equal(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiBoolTensor

Element-wise equality comparison. Read more
Source§

fn int_equal_elem(lhs: MultiIntTensor, rhs: i32) -> MultiBoolTensor

Element-wise equality comparison with a scalar. Read more
Source§

fn int_greater(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiBoolTensor

Element-wise greater than comparison. Read more
Source§

fn int_greater_elem(lhs: MultiIntTensor, rhs: i32) -> MultiBoolTensor

Element-wise greater than comparison with a scalar. Read more
Source§

fn int_greater_equal( lhs: MultiIntTensor, rhs: MultiIntTensor, ) -> MultiBoolTensor

Element-wise greater than or equal comparison. Read more
Source§

fn int_greater_equal_elem(lhs: MultiIntTensor, rhs: i32) -> MultiBoolTensor

Element-wise greater than or equal comparison with a scalar. Read more
Source§

fn int_lower(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiBoolTensor

Element-wise less than comparison. Read more
Source§

fn int_lower_elem(lhs: MultiIntTensor, rhs: i32) -> MultiBoolTensor

Element-wise less than comparison with a scalar. Read more
Source§

fn int_lower_equal(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiBoolTensor

Element-wise less than or equal comparison. Read more
Source§

fn int_lower_equal_elem(lhs: MultiIntTensor, rhs: i32) -> MultiBoolTensor

Element-wise less than or equal comparison with a scalar. Read more
Source§

fn int_add(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Element-wise addition. Read more
Source§

fn int_add_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Element-wise addition with a scalar. Read more
Source§

fn int_sub(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Element-wise subtraction. Read more
Source§

fn int_sub_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Element-wise subtraction with a scalar. Read more
Source§

fn int_mul(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Element-wise multiplication. Read more
Source§

fn int_mul_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Element-wise multiplication with a scalar. Read more
Source§

fn int_div(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Element-wise division. Read more
Source§

fn int_div_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Element-wise division with a scalar. Read more
Source§

fn int_remainder(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Element-wise modulus. Read more
Source§

fn int_remainder_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Element-wise modulus with a scalar. Read more
Source§

fn int_neg(tensor: MultiIntTensor) -> MultiIntTensor

Element-wise negation. Read more
Source§

fn int_zeros(shape: Shape, device: &MultiDevice) -> MultiIntTensor

Creates a tensor of zeros. Read more
Source§

fn int_ones(shape: Shape, device: &MultiDevice) -> MultiIntTensor

Creates a tensor of ones. Read more
Source§

fn int_full( shape: Shape, fill_value: i32, device: &MultiDevice, ) -> MultiIntTensor

Creates a tensor filled with given value. Read more
Source§

fn int_sum(tensor: MultiIntTensor) -> MultiIntTensor

Sums all elements in the tensor. Read more
Source§

fn int_sum_dim(tensor: MultiIntTensor, dim: usize) -> MultiIntTensor

Sums all elements in the tensor along a dimension. Read more
Source§

fn int_prod(tensor: MultiIntTensor) -> MultiIntTensor

Computes the product of all elements in the tensor. Read more
Source§

fn int_prod_dim(tensor: MultiIntTensor, dim: usize) -> MultiIntTensor

Computes the product of all elements in the tensor along a dimension. Read more
Source§

fn int_mean(tensor: MultiIntTensor) -> MultiIntTensor

Computes the mean of all elements in the tensor. Read more
Source§

fn int_mean_dim(tensor: MultiIntTensor, dim: usize) -> MultiIntTensor

Computes the mean of all elements in the tensor along a dimension. Read more
Source§

fn int_gather( dim: usize, tensor: MultiIntTensor, indices: MultiIntTensor, ) -> MultiIntTensor

Gather elements from the tensor at the given indices. Read more
Source§

fn int_scatter( dim: usize, tensor: MultiIntTensor, indices: MultiIntTensor, value: MultiIntTensor, ) -> MultiIntTensor

Scatter a given value to the tensor at the given indices. Read more
Source§

fn int_select( tensor: MultiIntTensor, dim: usize, indices: MultiIntTensor, ) -> MultiIntTensor

Select tensor elements along the given dimension corresponding to the given indices. Read more
Source§

fn int_select_assign( tensor: MultiIntTensor, dim: usize, indices: MultiIntTensor, value: MultiIntTensor, ) -> MultiIntTensor

Assign the selected elements along the given dimension corresponding to the given indices to the given value. Read more
Source§

fn int_mask_where( tensor: MultiIntTensor, mask: MultiBoolTensor, source: MultiIntTensor, ) -> MultiIntTensor

Fills the tensor with values from the source tensor if the mask is true at the given indices. Read more
Source§

fn int_mask_fill( tensor: MultiIntTensor, mask: MultiBoolTensor, value: i32, ) -> MultiIntTensor

Fills the tensor with the given value if the mask is true at the given indices. Read more
Source§

fn int_argmax(tensor: MultiIntTensor, dim: usize) -> MultiIntTensor

Gets the indices of the maximum elements along a dimension. Read more
Source§

fn int_argmin(tensor: MultiIntTensor, dim: usize) -> MultiIntTensor

Gets the indices of the minimum elements along a dimension. Read more
Source§

fn int_max_dim(tensor: MultiIntTensor, dim: usize) -> MultiIntTensor

Gets the maximum element in the tensor along a dimension. Read more
Source§

fn int_max_dim_with_indices( tensor: MultiIntTensor, dim: usize, ) -> (MultiIntTensor, MultiIntTensor)

Gets the maximum elements and corresponding indices along a dimension. Read more
Source§

fn int_min_dim(tensor: MultiIntTensor, dim: usize) -> MultiIntTensor

Gets the minimum elements in the tensor along a dimension. Read more
Source§

fn int_min_dim_with_indices( tensor: MultiIntTensor, dim: usize, ) -> (MultiIntTensor, MultiIntTensor)

Gets the minimum elements and corresponding indices along a dimension. Read more
Source§

fn int_clamp_min(tensor: MultiIntTensor, min: i32) -> MultiIntTensor

Clamps a tensor under a minimum value. Read more
Source§

fn int_clamp_max(tensor: MultiIntTensor, max: i32) -> MultiIntTensor

Clamps a tensor over a maximum value. Read more
Source§

fn int_clamp(tensor: MultiIntTensor, min: i32, max: i32) -> MultiIntTensor

Clamps a tensor between a minimum and maximum value. Read more
Source§

fn int_abs(tensor: MultiIntTensor) -> MultiIntTensor

Returns a new tensor with absolute values. Read more
Source§

fn int_into_float(tensor: MultiIntTensor) -> MultiFloatTensor

Converts int tensor to float tensor. Read more
Source§

fn int_swap_dims( tensor: MultiIntTensor, dim1: usize, dim2: usize, ) -> MultiIntTensor

Swaps two dimensions of an int tensor. Read more
Source§

fn int_random( shape: Shape, distribution: Distribution, device: &MultiDevice, ) -> MultiIntTensor

Creates a new int tensor with random values. Read more
Source§

fn int_arange(range: Range<i64>, device: &MultiDevice) -> MultiIntTensor

Creates a new tensor with values from the given range. Read more
Source§

fn int_permute(tensor: MultiIntTensor, axes: &[usize]) -> MultiIntTensor

Permutes the dimensions of a tensor. Read more
Source§

fn int_flip(tensor: MultiIntTensor, axes: &[usize]) -> MultiIntTensor

Reverse the order of elements in a tensor along the given axes. Read more
Source§

fn int_sign(tensor: MultiIntTensor) -> MultiIntTensor

Returns the signs of the int tensor. Read more
Source§

fn int_expand(tensor: MultiIntTensor, shape: Shape) -> MultiIntTensor

Broadcasts the int tensor to the given shape.
Source§

fn int_sort( tensor: MultiIntTensor, dim: usize, descending: bool, ) -> MultiIntTensor

Sort the elements of the input tensor by value along a given dimension. Read more
Source§

fn int_argsort( tensor: MultiIntTensor, dim: usize, descending: bool, ) -> MultiIntTensor

Returns the indices that sort the elements of the input tensor by value along a given dimension. Read more
Source§

fn bitwise_and(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Bitwise AND operation for Int Tensors
Source§

fn bitwise_or(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Bitwise OR operation for Int Tensors
Source§

fn bitwise_xor(lhs: MultiIntTensor, rhs: MultiIntTensor) -> MultiIntTensor

Bitwise XOR operation for Int Tensors
Source§

fn bitwise_not(tensor: MultiIntTensor) -> MultiIntTensor

Bitwise NOT operation for Int Tensors
Source§

fn bitwise_and_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Bitwise AND operation for Int Tensors with a scalar
Source§

fn bitwise_or_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Bitwise OR operation for Int Tensors with a scalar
Source§

fn bitwise_xor_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Bitwise XOR operation for Int Tensors with a scalar
Source§

fn bitwise_left_shift( lhs: MultiIntTensor, rhs: MultiIntTensor, ) -> MultiIntTensor

Bitwise left shift operation for Int Tensors
Source§

fn bitwise_right_shift( lhs: MultiIntTensor, rhs: MultiIntTensor, ) -> MultiIntTensor

Bitwise right shift operation for Int Tensors
Source§

fn bitwise_left_shift_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Bitwise left shift operation for Int Tensors with a scalar
Source§

fn bitwise_right_shift_scalar(lhs: MultiIntTensor, rhs: i32) -> MultiIntTensor

Bitwise right shift operation for Int Tensors with a scalar
Source§

fn int_not_equal( lhs: <B as Backend>::IntTensorPrimitive, rhs: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Element-wise non-equality comparison. Read more
Source§

fn int_not_equal_elem( lhs: <B as Backend>::IntTensorPrimitive, rhs: <B as Backend>::IntElem, ) -> <B as Backend>::BoolTensorPrimitive

Element-wise non-equality comparison with a scalar. Read more
Source§

fn int_powi( lhs: <B as Backend>::IntTensorPrimitive, rhs: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::IntTensorPrimitive

Element-wise power with a IntTensor. Read more
Source§

fn int_powf( lhs: <B as Backend>::IntTensorPrimitive, rhs: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::IntTensorPrimitive

Element-wise power with a floatTensor. Read more
Source§

fn int_powi_scalar( lhs: <B as Backend>::IntTensorPrimitive, rhs: <B as Backend>::IntElem, ) -> <B as Backend>::IntTensorPrimitive

Element-wise power with a scalar. Read more
Source§

fn int_powf_scalar( lhs: <B as Backend>::IntTensorPrimitive, rhs: f32, ) -> <B as Backend>::IntTensorPrimitive

Element-wise power with a floatTensor. Read more
Source§

fn int_max( tensor: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::IntTensorPrimitive

Gets the maximum element in the tensor. Read more
Source§

fn int_max_abs( tensor: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::IntTensorPrimitive

Gets the maximum absolute element in the tensor. Read more
Source§

fn int_max_abs_dim( tensor: <B as Backend>::IntTensorPrimitive, dim: usize, ) -> <B as Backend>::IntTensorPrimitive

Gets the maximum absolute element in the tensor along a dimension. Read more
Source§

fn int_min( tensor: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::IntTensorPrimitive

Gets the minimum element in the tensor. Read more
Source§

fn int_transpose( tensor: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::IntTensorPrimitive

Transposes an int tensor. Read more
Source§

fn int_arange_step( range: Range<i64>, step: usize, device: &<B as Backend>::Device, ) -> <B as Backend>::IntTensorPrimitive

Creates a new tensor with values from the given range with the given step size. Read more
Source§

fn int_any( tensor: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the int tensor evaluates to True. Read more
Source§

fn int_any_dim( tensor: <B as Backend>::IntTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the int tensor evaluates to True along a given dimension dim. Read more
Source§

fn int_all( tensor: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the int tensor evaluate to True. Read more
Source§

fn int_all_dim( tensor: <B as Backend>::IntTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the int tensor evaluate to True along a given dimension dim. Read more
Source§

fn int_sort_with_indices( tensor: <B as Backend>::IntTensorPrimitive, dim: usize, descending: bool, ) -> (<B as Backend>::IntTensorPrimitive, <B as Backend>::IntTensorPrimitive)

Sort the elements of the input tensor by value along a given dimension. Read more
Source§

impl ModuleOps<MultiBackend> for MultiBackend

Source§

fn embedding( weights: MultiFloatTensor, indices: MultiIntTensor, ) -> MultiFloatTensor

Embedding operation. Read more
Source§

fn embedding_backward( weights: MultiFloatTensor, output: MultiFloatTensor, indices: MultiIntTensor, ) -> MultiFloatTensor

Embedding backward operation. Read more
Source§

fn conv1d( x: MultiFloatTensor, weight: MultiFloatTensor, bias: Option<MultiFloatTensor>, options: ConvOptions<1>, ) -> MultiFloatTensor

One dimensional convolution. Read more
Source§

fn conv2d( x: MultiFloatTensor, weight: MultiFloatTensor, bias: Option<MultiFloatTensor>, options: ConvOptions<2>, ) -> MultiFloatTensor

Two dimensional convolution. Read more
Source§

fn conv3d( x: MultiFloatTensor, weight: MultiFloatTensor, bias: Option<MultiFloatTensor>, options: ConvOptions<3>, ) -> MultiFloatTensor

Three dimensional convolution. Read more
Source§

fn deform_conv2d( _x: MultiFloatTensor, _offset: MultiFloatTensor, _weight: MultiFloatTensor, _mask: Option<MultiFloatTensor>, _bias: Option<MultiFloatTensor>, _options: DeformConvOptions<2>, ) -> MultiFloatTensor

Two dimensional deformable convolution. Read more
Source§

fn deform_conv2d_backward( _x: MultiFloatTensor, _offset: MultiFloatTensor, _weight: MultiFloatTensor, _mask: Option<MultiFloatTensor>, _bias: Option<MultiFloatTensor>, _out_grad: MultiFloatTensor, _options: DeformConvOptions<2>, ) -> DeformConv2dBackward<Self>

Backward pass for the deform_conv2d operation.
Source§

fn conv_transpose1d( x: MultiFloatTensor, weight: MultiFloatTensor, bias: Option<MultiFloatTensor>, options: ConvTransposeOptions<1>, ) -> MultiFloatTensor

One dimensional transposed convolution. Read more
Source§

fn conv_transpose2d( x: MultiFloatTensor, weight: MultiFloatTensor, bias: Option<MultiFloatTensor>, options: ConvTransposeOptions<2>, ) -> MultiFloatTensor

Two dimensional transposed convolution. Read more
Source§

fn conv_transpose3d( x: MultiFloatTensor, weight: MultiFloatTensor, bias: Option<MultiFloatTensor>, options: ConvTransposeOptions<3>, ) -> MultiFloatTensor

Three dimensional transposed convolution. Read more
Source§

fn avg_pool1d( x: MultiFloatTensor, kernel_size: usize, stride: usize, padding: usize, count_include_pad: bool, ) -> MultiFloatTensor

One dimensional avg pooling. Read more
Source§

fn avg_pool2d( x: MultiFloatTensor, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, ) -> MultiFloatTensor

Two dimensional avg pooling. Read more
Source§

fn avg_pool2d_backward( x: MultiFloatTensor, grad: MultiFloatTensor, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, ) -> MultiFloatTensor

Backward pass for the avg pooling 2d operation.
Source§

fn max_pool1d( x: MultiFloatTensor, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ) -> MultiFloatTensor

One dimensional max pooling. Read more
Source§

fn max_pool1d_with_indices( x: MultiFloatTensor, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ) -> MaxPool1dWithIndices<MultiBackend>

One dimensional max pooling with indices. Read more
Source§

fn max_pool2d( x: MultiFloatTensor, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ) -> MultiFloatTensor

Two dimensional max pooling. Read more
Source§

fn max_pool2d_with_indices( x: MultiFloatTensor, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ) -> MaxPool2dWithIndices<MultiBackend>

Two dimensional max pooling with indices. Read more
Source§

fn max_pool2d_with_indices_backward( x: MultiFloatTensor, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], output_grad: MultiFloatTensor, indices: MultiIntTensor, ) -> MaxPool2dBackward<MultiBackend>

Backward pass for the max pooling 2d operation.
Source§

fn adaptive_avg_pool2d( x: MultiFloatTensor, output_size: [usize; 2], ) -> MultiFloatTensor

Two dimensional adaptive avg pooling. Read more
Source§

fn adaptive_avg_pool2d_backward( x: MultiFloatTensor, grad: MultiFloatTensor, ) -> MultiFloatTensor

Backward pass for the adaptive avg pooling 2d operation.
Source§

fn adaptive_avg_pool1d( x: MultiFloatTensor, output_size: usize, ) -> MultiFloatTensor

One dimensional adaptive avg pooling. Read more
Source§

fn interpolate( x: MultiFloatTensor, output_size: [usize; 2], options: InterpolateOptions, ) -> MultiFloatTensor

Down/up samples the input. Read more
Source§

fn interpolate_backward( x: MultiFloatTensor, grad: MultiFloatTensor, output_size: [usize; 2], options: InterpolateOptions, ) -> MultiFloatTensor

Backward pass for the interpolate operation.
Source§

fn conv1d_x_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvOptions<1>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv1d operation, returning the gradient for x.
Source§

fn conv1d_weight_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvOptions<1>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv1d operation, returning the gradient for weight.
Source§

fn conv1d_bias_backward( x: <B as Backend>::FloatTensorPrimitive, bias: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv1d operation, returning the gradient for bias.
Source§

fn conv2d_x_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvOptions<2>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv2d operation, returning the gradient for x.
Source§

fn conv2d_weight_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvOptions<2>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv2d operation, returning the gradient for weight.
Source§

fn conv2d_bias_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, bias: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv2d operation, returning the gradient for bias.
Source§

fn conv3d_x_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvOptions<3>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv3d operation, returning the gradient for x.
Source§

fn conv3d_weight_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvOptions<3>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv3d operation, returning the gradient for weight.
Source§

fn conv3d_bias_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, bias: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv3d operation, returning the gradient for bias.
Source§

fn conv_transpose1d_x_backward( weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvTransposeOptions<1>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 1d operation, returning the gradient for x.
Source§

fn conv_transpose1d_weight_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvTransposeOptions<1>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 1d operation, returning the gradient for weight.
Source§

fn conv_transpose1d_bias_backward( x: <B as Backend>::FloatTensorPrimitive, bias: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 1d operation, returning the gradient for bias.
Source§

fn conv_transpose2d_x_backward( weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvTransposeOptions<2>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 2d operation, returning the gradient for x.
Source§

fn conv_transpose2d_weight_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvTransposeOptions<2>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 2d operation, returning the gradient for weight.
Source§

fn conv_transpose2d_bias_backward( x: <B as Backend>::FloatTensorPrimitive, bias: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 2d operation, returning the gradient for bias.
Source§

fn conv_transpose3d_x_backward( weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvTransposeOptions<3>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 3d operation, returning the gradient for x.
Source§

fn conv_transpose3d_weight_backward( x: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, options: ConvTransposeOptions<3>, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 3d operation, returning the gradient for weight.
Source§

fn conv_transpose3d_bias_backward( x: <B as Backend>::FloatTensorPrimitive, bias: <B as Backend>::FloatTensorPrimitive, output_grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the conv transpose 3d operation, returning the gradient for bias.
Source§

fn unfold4d( x: <B as Backend>::FloatTensorPrimitive, kernel_size: [usize; 2], options: UnfoldOptions, ) -> <B as Backend>::FloatTensorPrimitive

Four-dimensional unfolding. Read more
Source§

fn avg_pool1d_backward( x: <B as Backend>::FloatTensorPrimitive, grad: <B as Backend>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, count_include_pad: bool, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the avg pooling 1d operation.
Source§

fn adaptive_avg_pool1d_backward( x: <B as Backend>::FloatTensorPrimitive, grad: <B as Backend>::FloatTensorPrimitive, ) -> <B as Backend>::FloatTensorPrimitive

Backward pass for the adaptive avg pooling 1d operation.
Source§

fn max_pool1d_with_indices_backward( x: <B as Backend>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, output_grad: <B as Backend>::FloatTensorPrimitive, indices: <B as Backend>::IntTensorPrimitive, ) -> MaxPool1dBackward<B>

Backward pass for the max pooling 1d operation.
Source§

fn linear( input: <B as Backend>::FloatTensorPrimitive, weight: <B as Backend>::FloatTensorPrimitive, bias: Option<<B as Backend>::FloatTensorPrimitive>, ) -> <B as Backend>::FloatTensorPrimitive

Applies a linear transformation to the input tensor using the given weight and bias. Read more
Source§

impl QTensorOps<MultiBackend> for MultiBackend

Source§

fn q_from_data( _data: TensorData, _device: &MultiDevice, ) -> QuantizedTensor<Self>

Creates a new tensor from the data structure. Read more
Source§

fn quantize( _tensor: FloatTensor<Self>, _scheme: &QuantScheme, _qparams: QuantizationParametersPrimitive<Self>, ) -> QuantizedTensor<Self>

Convert the tensor to a lower precision data type based on the quantization scheme and parameters.
Source§

fn quantize_dynamic( _tensor: FloatTensor<Self>, _scheme: &QuantScheme, ) -> QuantizedTensor<Self>

Dynamically convert the tensor to a lower precision data type based on the quantization scheme.
Source§

fn dequantize(_tensor: QuantizedTensor<Self>) -> FloatTensor<Self>

Convert the tensor back to a higher precision data type.
Source§

fn q_device(_tensor: &QuantizedTensor<Self>) -> MultiDevice

Gets the device of the tensor. Read more
Source§

fn q_to_device( _tensor: QuantizedTensor<Self>, _device: &Device<Self>, ) -> QuantizedTensor<Self>

Moves the tensor to the given device. Read more
Source§

fn q_reshape( _tensor: QuantizedTensor<Self>, _shape: Shape, ) -> QuantizedTensor<Self>

Reshapes a tensor. Read more
Source§

async fn q_into_data(_tensor: QuantizedTensor<Self>) -> TensorData

Converts the tensor to a data structure. Read more
Source§

fn q_swap_dims( _tensor: QuantizedTensor<Self>, _dim1: usize, _dim2: usize, ) -> QuantizedTensor<Self>

Swaps two dimensions of a tensor. Read more
Source§

fn q_permute( _tensor: QuantizedTensor<Self>, _axes: &[usize], ) -> QuantizedTensor<Self>

Permutes the dimensions of a tensor. Read more
Source§

fn q_flip( _tensor: QuantizedTensor<Self>, _axes: &[usize], ) -> QuantizedTensor<Self>

Reverse the order of elements in a tensor along the given axes. Read more
Source§

fn q_select( _tensor: QuantizedTensor<Self>, _dim: usize, _indices: IntTensor<Self>, ) -> QuantizedTensor<Self>

Select tensor elements along the given dimension corresponding for the given indices. Read more
Source§

fn q_slice( _tensor: QuantizedTensor<Self>, _ranges: &[Range<usize>], ) -> QuantizedTensor<Self>

Select tensor elements corresponding for the given ranges. Read more
Source§

fn q_argmax(_tensor: QuantizedTensor<Self>, _dim: usize) -> IntTensor<Self>

Gets the indices of the maximum elements of a tensor along an axis. Read more
Source§

fn q_argmin(_tensor: QuantizedTensor<Self>, _dim: usize) -> IntTensor<Self>

Gets the indices of the minimum elements of a tensor along an axis. Read more
Source§

fn q_max_dim_with_indices( _tensor: QuantizedTensor<Self>, _dim: usize, ) -> (QuantizedTensor<Self>, IntTensor<Self>)

Gets the maximum elements of a tensor along an axis and their indices. Read more
Source§

fn q_max_dim( _tensor: QuantizedTensor<Self>, _dim: usize, ) -> QuantizedTensor<Self>

Gets the maximum elements of a tensor along an axis. Read more
Source§

fn q_min_dim( _tensor: QuantizedTensor<Self>, _dim: usize, ) -> QuantizedTensor<Self>

Gets the minimum elements of a tensor along an axis. Read more
Source§

fn q_min_dim_with_indices( _tensor: QuantizedTensor<Self>, _dim: usize, ) -> (QuantizedTensor<Self>, IntTensor<Self>)

Gets the minimum elements of a tensor along an axis and their indices. Read more
Source§

fn q_expand( _tensor: QuantizedTensor<Self>, _shape: Shape, ) -> QuantizedTensor<Self>

Broadcasts the tensor to the given shape.
Source§

fn q_sort( _tensor: QuantizedTensor<Self>, _dim: usize, _descending: bool, ) -> QuantizedTensor<Self>

Sort the elements of the input tensor by value in along a given dimension. Read more
Source§

fn q_sort_with_indices( _tensor: QuantizedTensor<Self>, _dim: usize, _descending: bool, ) -> (QuantizedTensor<Self>, IntTensor<Self>)

Sort the elements of the input tensor by value in along a given dimension. Read more
Source§

fn q_argsort( _tensor: QuantizedTensor<Self>, _dim: usize, _descending: bool, ) -> IntTensor<Self>

Returns the indices that sort the elements of the input tensor by value along a given dimension. Read more
Source§

fn q_detach( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::QuantizedTensorPrimitive

Detaches a tensor from the computation graph.
Source§

fn q_set_require_grad( tensor: <B as Backend>::QuantizedTensorPrimitive, _require_grad: bool, ) -> <B as Backend>::QuantizedTensorPrimitive

Sets the require_grad flag of a tensor.
Source§

fn q_is_require_grad(_tensor: &<B as Backend>::QuantizedTensorPrimitive) -> bool

Returns the require_grad flag of a tensor.
Source§

fn q_transpose( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::QuantizedTensorPrimitive

Transposes a tensor. Read more
Source§

fn q_gather( dim: usize, tensor: <B as Backend>::QuantizedTensorPrimitive, indices: <B as Backend>::IntTensorPrimitive, ) -> <B as Backend>::QuantizedTensorPrimitive

Gather elements from a tensor. Read more
Source§

fn q_repeat_dim( tensor: <B as Backend>::QuantizedTensorPrimitive, dim: usize, times: usize, ) -> <B as Backend>::QuantizedTensorPrimitive

Repeat the tensor along the given dimension. Read more
Source§

fn q_add( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Adds two tensors together. Read more
Source§

fn q_add_scalar( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::FloatElem, ) -> TensorPrimitive<B>

Adds a scalar to a tensor. Read more
Source§

fn q_clamp_min( tensor: <B as Backend>::QuantizedTensorPrimitive, min: <B as Backend>::FloatElem, ) -> TensorPrimitive<B>

Clamps a tensor under a minimum value. Read more
Source§

fn q_clamp_max( tensor: <B as Backend>::QuantizedTensorPrimitive, max: <B as Backend>::FloatElem, ) -> TensorPrimitive<B>

Clamps a tensor over a maximum value. Read more
Source§

fn q_clamp( tensor: <B as Backend>::QuantizedTensorPrimitive, min: <B as Backend>::FloatElem, max: <B as Backend>::FloatElem, ) -> TensorPrimitive<B>

Clamps a tensor between a minimum and maximum value. Read more
Source§

fn q_sub( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Subtracts two tensors. Read more
Source§

fn q_sub_scalar( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::FloatElem, ) -> TensorPrimitive<B>

Subtracts a scalar from a tensor. Read more
Source§

fn q_mul( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Multiplies two tensors together element-wise.
Source§

fn q_mul_scalar( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::FloatElem, ) -> TensorPrimitive<B>

Multiplies a tensor by a scalar. Read more
Source§

fn q_div( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Divides two tensors element-wise. Read more
Source§

fn q_div_scalar( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::FloatElem, ) -> TensorPrimitive<B>

Divides a tensor by a scalar. Read more
Source§

fn q_matmul( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Multiplies two tensors together using matrix multiplication. Read more
Source§

fn q_neg(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Negates a tensor element-wise.
Source§

fn q_recip( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Calculates the reciprocals element-wise
Source§

fn q_sum(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Sum of all elements in a tensor. Read more
Source§

fn q_sum_dim( tensor: <B as Backend>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>

Sum of all elements in a tensor along a dimension. Read more
Source§

fn q_prod( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Product of all elements in a tensor. Read more
Source§

fn q_prod_dim( tensor: <B as Backend>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>

Product of all elements in a tensor along a dimension. Read more
Source§

fn q_mean( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Mean of all elements in a tensor. Read more
Source§

fn q_mean_dim( tensor: <B as Backend>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>

Mean of all elements in a tensor along a dimension. Read more
Source§

fn q_exp(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Returns a new tensor with exponential values. Read more
Source§

fn q_log(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Returns a new tensor with natural logarithm values. Read more
Source§

fn q_log1p( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Returns a new tensor with logarithm values of (1 + Xi). Read more
Source§

fn q_powf( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Element-wise power with another tensor. Read more
Source§

fn q_powi( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::IntTensorPrimitive, ) -> TensorPrimitive<B>

Element-wise power with an IntTensor. Read more
Source§

fn q_powi_scalar( lhs: <B as Backend>::QuantizedTensorPrimitive, rhs: <B as Backend>::IntElem, ) -> TensorPrimitive<B>

Element-wise power with an int scalar. Read more
Source§

fn q_powf_scalar( tensor: <B as Backend>::QuantizedTensorPrimitive, value: f32, ) -> TensorPrimitive<B>

Element-wise power with a float scalar. Read more
Source§

fn q_sqrt( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Returns a new tensor with square root values. Read more
Source§

fn q_abs( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::QuantizedTensorPrimitive

Returns a new tensor with absolute values. Read more
Source§

fn q_cos(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Returns a new tensor with cosine values. Read more
Source§

fn q_sin(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Returns a new tensor with sine values. Read more
Source§

fn q_tan(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Returns a new tensor with tangent values. Read more
Source§

fn q_cosh( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Returns a new tensor with hyperbolic cosine values. Read more
Source§

fn q_sinh( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Returns a new tensor with hyperbolic sine values. Read more
Source§

fn q_tanh( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>

Returns a new tensor with hyperbolic tangent values. Read more
Source§

fn q_erf(tensor: <B as Backend>::QuantizedTensorPrimitive) -> TensorPrimitive<B>

Returns a new tensor with the error function values. Read more
Source§

fn q_cat( tensors: Vec<<B as Backend>::QuantizedTensorPrimitive>, dim: usize, ) -> <B as Backend>::QuantizedTensorPrimitive

Concatenates tensors along a dimension. Read more
Source§

fn q_max( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::QuantizedTensorPrimitive

Gets the maximum element of a tensor. Read more
Source§

fn q_min( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::QuantizedTensorPrimitive

Gets the minimum element of a tensor. Read more
Source§

fn q_max_abs( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::QuantizedTensorPrimitive

Gets the maximum element of a tensor. Read more
Source§

fn q_max_abs_dim( tensor: <B as Backend>::QuantizedTensorPrimitive, dim: usize, ) -> <B as Backend>::QuantizedTensorPrimitive

Gets the maximum elements of a tensor along an axis. Read more
Source§

fn q_any( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the tensor evaluates to True. Read more
Source§

fn q_any_dim( tensor: <B as Backend>::QuantizedTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if any element in the float tensor evaluates to True along a given dimension dim. Read more
Source§

fn q_all( tensor: <B as Backend>::QuantizedTensorPrimitive, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the tensor evaluate to True. Read more
Source§

fn q_all_dim( tensor: <B as Backend>::QuantizedTensorPrimitive, dim: usize, ) -> <B as Backend>::BoolTensorPrimitive

Tests if all elements in the tensor evaluate to True along a given dimension dim. Read more
Source§

impl TransactionOps<MultiBackend> for MultiBackend

Source§

fn tr_execute( transaction: TransactionPrimitive<B>, ) -> impl Future<Output = TransactionPrimitiveResult> + Send

Executes a transaction and return its result.
Source§

impl Copy for MultiBackend

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,