pub struct NdArray;Expand description
Tensor backend that uses the ndarray crate for executing tensor operations.
This backend is compatible with CPUs and can be compiled for almost any platform, including
wasm, arm, and x86.
Trait Implementations§
Source§impl ActivationOps<NdArray> for NdArray
impl ActivationOps<NdArray> for NdArray
Source§fn relu(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn relu(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn leaky_relu(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
negative_slope: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn leaky_relu( tensor: <B as BackendTypes>::FloatTensorPrimitive, negative_slope: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn relu_backward(
output: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn relu_backward( output: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn gelu(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn gelu( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn prelu(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
alpha: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn prelu( tensor: <B as BackendTypes>::FloatTensorPrimitive, alpha: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn gelu_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn gelu_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn sigmoid(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn sigmoid( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn sigmoid_backward(
output: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn sigmoid_backward( output: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn hard_sigmoid(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
alpha: Scalar,
beta: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn hard_sigmoid( tensor: <B as BackendTypes>::FloatTensorPrimitive, alpha: Scalar, beta: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn log_sigmoid(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn log_sigmoid( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn softmax(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn softmax( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn log_softmax(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn log_softmax( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn softmin(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn softmin( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn log_sigmoid_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn log_sigmoid_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§impl Backend for NdArray
impl Backend for NdArray
Source§fn ad_enabled(_device: &Self::Device) -> bool
fn ad_enabled(_device: &Self::Device) -> bool
Source§fn seed(_device: &Self::Device, seed: u64)
fn seed(_device: &Self::Device, seed: u64)
Source§fn dtype_usage(_device: &Self::Device, dtype: DType) -> DTypeUsageSet
fn dtype_usage(_device: &Self::Device, dtype: DType) -> DTypeUsageSet
Source§fn device_count(_: u16) -> usize
fn device_count(_: u16) -> usize
device is a reference device used to determine the underlying backend that should be queried.
A CUDA device will return all devices available to CUDA, a Vulkan device will return all
devices available to Vulkan, etc.Source§fn memory_persistent_allocations<Output, Input, Func>(
device: &Self::Device,
input: Input,
func: Func,
) -> Output
fn memory_persistent_allocations<Output, Input, Func>( device: &Self::Device, input: Input, func: Func, ) -> Output
Source§fn memory_cleanup(device: &Self::Device)
fn memory_cleanup(device: &Self::Device)
Source§fn sync(_device: &Self::Device) -> Result<(), ExecutionError>
fn sync(_device: &Self::Device) -> Result<(), ExecutionError>
Source§fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
device for an upcoming graph capture: route allocations into a
stable pool so every buffer allocated before graph_stop_capture can
be pinned. Call before the warmup run. No-op by default. Read moreSource§fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
device into a graph (see
graph_stop_capture). Errors on backends
without hardware graph support, so callers fall back to re-running.Source§fn graph_stop_capture(
_device: &Self::Device,
) -> Result<Self::GraphPrimitive, ExecutionError>
fn graph_stop_capture( _device: &Self::Device, ) -> Result<Self::GraphPrimitive, ExecutionError>
graph_replay.Source§unsafe fn graph_replay(
_device: &Self::Device,
_graph: &Self::GraphPrimitive,
) -> Result<(), ExecutionError>
unsafe fn graph_replay( _device: &Self::Device, _graph: &Self::GraphPrimitive, ) -> Result<(), ExecutionError>
Source§impl BackendIr for NdArray
impl BackendIr for NdArray
Source§type Handle = HandleKind<NdArray>
type Handle = HandleKind<NdArray>
Source§fn float_tensor(handle: TensorHandle<Self::Handle>) -> FloatTensor<Self>
fn float_tensor(handle: TensorHandle<Self::Handle>) -> FloatTensor<Self>
Source§fn int_tensor(handle: TensorHandle<Self::Handle>) -> IntTensor<Self>
fn int_tensor(handle: TensorHandle<Self::Handle>) -> IntTensor<Self>
Source§fn bool_tensor(handle: TensorHandle<Self::Handle>) -> BoolTensor<Self>
fn bool_tensor(handle: TensorHandle<Self::Handle>) -> BoolTensor<Self>
Source§fn quantized_tensor(handle: TensorHandle<Self::Handle>) -> QuantizedTensor<Self>
fn quantized_tensor(handle: TensorHandle<Self::Handle>) -> QuantizedTensor<Self>
Source§fn float_tensor_handle(tensor: FloatTensor<Self>) -> Self::Handle
fn float_tensor_handle(tensor: FloatTensor<Self>) -> Self::Handle
Source§fn int_tensor_handle(tensor: IntTensor<Self>) -> Self::Handle
fn int_tensor_handle(tensor: IntTensor<Self>) -> Self::Handle
Source§fn bool_tensor_handle(tensor: BoolTensor<Self>) -> Self::Handle
fn bool_tensor_handle(tensor: BoolTensor<Self>) -> Self::Handle
Source§fn quantized_tensor_handle(tensor: QuantizedTensor<Self>) -> Self::Handle
fn quantized_tensor_handle(tensor: QuantizedTensor<Self>) -> Self::Handle
Source§impl BackendTypes for NdArray
impl BackendTypes for NdArray
Source§type Device = NdArrayDevice
type Device = NdArrayDevice
Source§type FloatTensorPrimitive = NdArrayTensor
type FloatTensorPrimitive = NdArrayTensor
Source§type IntTensorPrimitive = NdArrayTensor
type IntTensorPrimitive = NdArrayTensor
Source§type BoolTensorPrimitive = NdArrayTensor
type BoolTensorPrimitive = NdArrayTensor
Source§type QuantizedTensorPrimitive = NdArrayQTensor
type QuantizedTensorPrimitive = NdArrayQTensor
Source§type GraphPrimitive = GraphUnsupported
type GraphPrimitive = GraphUnsupported
Backend::graph_stop_capture and
consumed by Backend::graph_replay: a backend-owned recording of a
launch sequence that replays as a single dispatch. Read moreSource§impl BoolTensorOps<NdArray> for NdArray
impl BoolTensorOps<NdArray> for NdArray
Source§fn bool_from_data(data: TensorData, _device: &NdArrayDevice) -> NdArrayTensor
fn bool_from_data(data: TensorData, _device: &NdArrayDevice) -> NdArrayTensor
Source§async fn bool_into_data(
tensor: NdArrayTensor,
) -> Result<TensorData, ExecutionError>
async fn bool_into_data( tensor: NdArrayTensor, ) -> Result<TensorData, ExecutionError>
Source§fn bool_to_device(
tensor: NdArrayTensor,
_device: &NdArrayDevice,
) -> NdArrayTensor
fn bool_to_device( tensor: NdArrayTensor, _device: &NdArrayDevice, ) -> NdArrayTensor
Source§fn bool_reshape(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
fn bool_reshape(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
Source§fn bool_slice(tensor: NdArrayTensor, slices: &[Slice]) -> NdArrayTensor
fn bool_slice(tensor: NdArrayTensor, slices: &[Slice]) -> NdArrayTensor
Source§fn bool_into_int(tensor: NdArrayTensor, out_dtype: IntDType) -> NdArrayTensor
fn bool_into_int(tensor: NdArrayTensor, out_dtype: IntDType) -> NdArrayTensor
Source§fn bool_empty(
shape: Shape,
_device: &NdArrayDevice,
dtype: BoolDType,
) -> NdArrayTensor
fn bool_empty( shape: Shape, _device: &NdArrayDevice, dtype: BoolDType, ) -> NdArrayTensor
Source§fn bool_zeros(
shape: Shape,
_device: &NdArrayDevice,
_dtype: BoolDType,
) -> NdArrayTensor
fn bool_zeros( shape: Shape, _device: &NdArrayDevice, _dtype: BoolDType, ) -> NdArrayTensor
Source§fn bool_ones(
shape: Shape,
_device: &NdArrayDevice,
_dtype: BoolDType,
) -> NdArrayTensor
fn bool_ones( shape: Shape, _device: &NdArrayDevice, _dtype: BoolDType, ) -> NdArrayTensor
Source§fn bool_slice_assign(
tensor: NdArrayTensor,
slices: &[Slice],
value: NdArrayTensor,
) -> NdArrayTensor
fn bool_slice_assign( tensor: NdArrayTensor, slices: &[Slice], value: NdArrayTensor, ) -> NdArrayTensor
Source§fn bool_cat(tensors: Vec<NdArrayTensor>, dim: usize) -> NdArrayTensor
fn bool_cat(tensors: Vec<NdArrayTensor>, dim: usize) -> NdArrayTensor
Source§fn bool_equal(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bool_equal(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn bool_not(tensor: NdArrayTensor) -> NdArrayTensor
fn bool_not(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn bool_and(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bool_and(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
&&) operation on two boolean tensors. Read moreSource§fn bool_or(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bool_or(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
||) operation on two boolean tensors. Read moreSource§fn bool_into_float(
tensor: NdArrayTensor,
out_dtype: FloatDType,
) -> FloatTensor<Self>
fn bool_into_float( tensor: NdArrayTensor, out_dtype: FloatDType, ) -> FloatTensor<Self>
Source§fn bool_swap_dims(
tensor: NdArrayTensor,
dim1: usize,
dim2: usize,
) -> NdArrayTensor
fn bool_swap_dims( tensor: NdArrayTensor, dim1: usize, dim2: usize, ) -> NdArrayTensor
Source§fn bool_permute(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
fn bool_permute(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
Source§fn bool_expand(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
fn bool_expand(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
tensor to the given shape.Source§fn bool_select(
tensor: NdArrayTensor,
dim: usize,
indices: NdArrayTensor,
) -> NdArrayTensor
fn bool_select( tensor: NdArrayTensor, dim: usize, indices: NdArrayTensor, ) -> NdArrayTensor
Source§fn bool_select_or(
tensor: NdArrayTensor,
dim: usize,
indices: NdArrayTensor,
value: NdArrayTensor,
) -> NdArrayTensor
fn bool_select_or( tensor: NdArrayTensor, dim: usize, indices: NdArrayTensor, value: NdArrayTensor, ) -> NdArrayTensor
Source§fn bool_flip(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
fn bool_flip(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
Source§fn bool_unfold(
tensor: NdArrayTensor,
dim: usize,
size: usize,
step: usize,
) -> NdArrayTensor
fn bool_unfold( tensor: NdArrayTensor, dim: usize, size: usize, step: usize, ) -> NdArrayTensor
Source§fn bool_mask_where(
tensor: BoolTensor<Self>,
mask: BoolTensor<Self>,
value: BoolTensor<Self>,
) -> BoolTensor<Self>
fn bool_mask_where( tensor: BoolTensor<Self>, mask: BoolTensor<Self>, value: BoolTensor<Self>, ) -> BoolTensor<Self>
Source§fn bool_mask_fill(
tensor: BoolTensor<Self>,
mask: BoolTensor<Self>,
value: Scalar,
) -> BoolTensor<Self>
fn bool_mask_fill( tensor: BoolTensor<Self>, mask: BoolTensor<Self>, value: Scalar, ) -> BoolTensor<Self>
Source§fn bool_gather(
dim: usize,
tensor: BoolTensor<Self>,
indices: IntTensor<Self>,
) -> BoolTensor<Self>
fn bool_gather( dim: usize, tensor: BoolTensor<Self>, indices: IntTensor<Self>, ) -> BoolTensor<Self>
Source§fn bool_scatter_or(
dim: usize,
tensor: BoolTensor<Self>,
indices: IntTensor<Self>,
value: BoolTensor<Self>,
) -> BoolTensor<Self>
fn bool_scatter_or( dim: usize, tensor: BoolTensor<Self>, indices: IntTensor<Self>, value: BoolTensor<Self>, ) -> BoolTensor<Self>
Source§fn bool_equal_elem(lhs: BoolTensor<Self>, rhs: Scalar) -> BoolTensor<Self>
fn bool_equal_elem(lhs: BoolTensor<Self>, rhs: Scalar) -> BoolTensor<Self>
Source§fn bool_any(tensor: BoolTensor<Self>) -> BoolTensor<Self>
fn bool_any(tensor: BoolTensor<Self>) -> BoolTensor<Self>
tensor evaluates to True. Read moreSource§fn bool_all(tensor: BoolTensor<Self>) -> BoolTensor<Self>
fn bool_all(tensor: BoolTensor<Self>) -> BoolTensor<Self>
tensor evaluate to True. Read moreSource§fn bool_repeat_dim(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
dim: usize,
times: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_repeat_dim( tensor: <B as BackendTypes>::BoolTensorPrimitive, dim: usize, times: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn bool_not_equal(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_not_equal( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn bool_not_equal_elem(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_not_equal_elem( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn bool_xor(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_xor( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn bool_transpose(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_transpose( tensor: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn bool_any_dim(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_any_dim( tensor: <B as BackendTypes>::BoolTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn bool_all_dim(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_all_dim( tensor: <B as BackendTypes>::BoolTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn bool_argwhere(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
out_dtype: IntDType,
) -> impl Future<Output = <B as BackendTypes>::IntTensorPrimitive> + Send + 'static
fn bool_argwhere( tensor: <B as BackendTypes>::BoolTensorPrimitive, out_dtype: IntDType, ) -> impl Future<Output = <B as BackendTypes>::IntTensorPrimitive> + Send + 'static
impl Copy for NdArray
Source§impl DistributedOps<NdArray> for NdArray
impl DistributedOps<NdArray> for NdArray
Source§fn start_communication_server(
devices: &[<B as BackendTypes>::Device],
config: DistributedConfig,
)
fn start_communication_server( devices: &[<B as BackendTypes>::Device], config: DistributedConfig, )
Source§fn close_communication_server(_device: &<B as BackendTypes>::Device)
fn close_communication_server(_device: &<B as BackendTypes>::Device)
Source§fn register_sync_parameters(
_device: &<B as BackendTypes>::Device,
distributed_params: Vec<DistributedParams>,
)
fn register_sync_parameters( _device: &<B as BackendTypes>::Device, distributed_params: Vec<DistributedParams>, )
Source§fn submit_sync_collective(device: &<B as BackendTypes>::Device)
fn submit_sync_collective(device: &<B as BackendTypes>::Device)
Source§fn submit_gradient_sync(
tensor: TensorRef<B>,
distributed_params: DistributedParams,
)
fn submit_gradient_sync( tensor: TensorRef<B>, distributed_params: DistributedParams, )
Source§fn all_reduce(
_tensor: <B as BackendTypes>::FloatTensorPrimitive,
_op: ReduceOperation,
_device_ids: Vec<DeviceId>,
) -> CollectiveTensor<B>
fn all_reduce( _tensor: <B as BackendTypes>::FloatTensorPrimitive, _op: ReduceOperation, _device_ids: Vec<DeviceId>, ) -> CollectiveTensor<B>
Source§fn sync_collective(_device: &<B as BackendTypes>::Device)
fn sync_collective(_device: &<B as BackendTypes>::Device)
Source§unsafe fn comm_device(tensor: &TensorRef<B>) -> <B as BackendTypes>::Device
unsafe fn comm_device(tensor: &TensorRef<B>) -> <B as BackendTypes>::Device
Source§unsafe fn float_from_ref(
tensor: &TensorRef<B>,
) -> <B as BackendTypes>::FloatTensorPrimitive
unsafe fn float_from_ref( tensor: &TensorRef<B>, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§impl FloatTensorOps<NdArray> for NdArray
impl FloatTensorOps<NdArray> for NdArray
Source§fn float_from_data(
data: TensorData,
_device: &NdArrayDevice,
) -> FloatTensor<Self>
fn float_from_data( data: TensorData, _device: &NdArrayDevice, ) -> FloatTensor<Self>
Source§fn float_random(
shape: Shape,
distribution: Distribution,
device: &NdArrayDevice,
dtype: FloatDType,
) -> FloatTensor<Self>
fn float_random( shape: Shape, distribution: Distribution, device: &NdArrayDevice, dtype: FloatDType, ) -> FloatTensor<Self>
Source§async fn float_into_data(
tensor: FloatTensor<Self>,
) -> Result<TensorData, ExecutionError>
async fn float_into_data( tensor: FloatTensor<Self>, ) -> Result<TensorData, ExecutionError>
Source§fn float_to_device(
tensor: FloatTensor<Self>,
_device: &NdArrayDevice,
) -> FloatTensor<Self>
fn float_to_device( tensor: FloatTensor<Self>, _device: &NdArrayDevice, ) -> FloatTensor<Self>
Source§fn float_empty(
shape: Shape,
device: &NdArrayDevice,
dtype: FloatDType,
) -> FloatTensor<Self>
fn float_empty( shape: Shape, device: &NdArrayDevice, dtype: FloatDType, ) -> FloatTensor<Self>
Source§fn float_add(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_add( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_add_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
fn float_add_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
Source§fn float_sub(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_sub( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_sub_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
fn float_sub_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
Source§fn float_mul(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_mul( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_mul_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
fn float_mul_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
Source§fn float_div(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_div( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_div_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
fn float_div_scalar(lhs: FloatTensor<Self>, rhs: Scalar) -> FloatTensor<Self>
Source§fn float_remainder(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_remainder( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_remainder_scalar(
lhs: FloatTensor<Self>,
rhs: Scalar,
) -> FloatTensor<Self>
fn float_remainder_scalar( lhs: FloatTensor<Self>, rhs: Scalar, ) -> FloatTensor<Self>
Source§fn float_matmul(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_matmul( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_cross(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
dim: usize,
) -> FloatTensor<Self>
fn float_cross( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, dim: usize, ) -> FloatTensor<Self>
Source§fn float_recip(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_recip(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_swap_dims(
tensor: FloatTensor<Self>,
dim1: usize,
dim2: usize,
) -> FloatTensor<Self>
fn float_swap_dims( tensor: FloatTensor<Self>, dim1: usize, dim2: usize, ) -> FloatTensor<Self>
Source§fn float_reshape(tensor: FloatTensor<Self>, shape: Shape) -> FloatTensor<Self>
fn float_reshape(tensor: FloatTensor<Self>, shape: Shape) -> FloatTensor<Self>
Source§fn float_gather(
dim: usize,
tensor: FloatTensor<Self>,
indices: NdArrayTensor,
) -> FloatTensor<Self>
fn float_gather( dim: usize, tensor: FloatTensor<Self>, indices: NdArrayTensor, ) -> FloatTensor<Self>
Source§fn float_scatter_add(
dim: usize,
tensor: FloatTensor<Self>,
indices: NdArrayTensor,
value: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_scatter_add( dim: usize, tensor: FloatTensor<Self>, indices: NdArrayTensor, value: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_scatter_nd(
data: FloatTensor<Self>,
indices: NdArrayTensor,
values: FloatTensor<Self>,
reduction: IndexingUpdateOp,
) -> FloatTensor<Self>
fn float_scatter_nd( data: FloatTensor<Self>, indices: NdArrayTensor, values: FloatTensor<Self>, reduction: IndexingUpdateOp, ) -> FloatTensor<Self>
Source§fn float_gather_nd(
data: FloatTensor<Self>,
indices: NdArrayTensor,
) -> FloatTensor<Self>
fn float_gather_nd( data: FloatTensor<Self>, indices: NdArrayTensor, ) -> FloatTensor<Self>
Source§fn float_select(
tensor: FloatTensor<Self>,
dim: usize,
indices: NdArrayTensor,
) -> FloatTensor<Self>
fn float_select( tensor: FloatTensor<Self>, dim: usize, indices: NdArrayTensor, ) -> FloatTensor<Self>
Source§fn float_select_add(
tensor: FloatTensor<Self>,
dim: usize,
indices: NdArrayTensor,
value: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_select_add( tensor: FloatTensor<Self>, dim: usize, indices: NdArrayTensor, value: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_slice(tensor: FloatTensor<Self>, slices: &[Slice]) -> FloatTensor<Self>
fn float_slice(tensor: FloatTensor<Self>, slices: &[Slice]) -> FloatTensor<Self>
Source§fn float_slice_assign(
tensor: FloatTensor<Self>,
slices: &[Slice],
value: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_slice_assign( tensor: FloatTensor<Self>, slices: &[Slice], value: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_mask_where(
tensor: FloatTensor<Self>,
mask: NdArrayTensor,
value: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_mask_where( tensor: FloatTensor<Self>, mask: NdArrayTensor, value: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_mask_fill(
tensor: FloatTensor<Self>,
mask: NdArrayTensor,
value: Scalar,
) -> FloatTensor<Self>
fn float_mask_fill( tensor: FloatTensor<Self>, mask: NdArrayTensor, value: Scalar, ) -> FloatTensor<Self>
Source§fn float_equal(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_equal( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_equal_elem(
lhs: FloatTensor<Self>,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_equal_elem( lhs: FloatTensor<Self>, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_greater(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_greater( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_greater_elem(
lhs: FloatTensor<Self>,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_greater_elem( lhs: FloatTensor<Self>, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_greater_equal(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_greater_equal( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_greater_equal_elem(
lhs: FloatTensor<Self>,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_greater_equal_elem( lhs: FloatTensor<Self>, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_lower(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_lower( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_lower_elem(
lhs: FloatTensor<Self>,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_lower_elem( lhs: FloatTensor<Self>, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_lower_equal(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_lower_equal( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_lower_equal_elem(
lhs: FloatTensor<Self>,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn float_lower_equal_elem( lhs: FloatTensor<Self>, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn float_detach(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_detach(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_mean(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_mean(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_sum(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_sum(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_mean_dim(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
fn float_mean_dim(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
Source§fn float_cumsum(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
fn float_cumsum(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
Source§fn float_cumprod(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
fn float_cumprod(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
Source§fn float_cummin(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
fn float_cummin(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
Source§fn float_cummax(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
fn float_cummax(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
Source§fn float_sum_dim(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
fn float_sum_dim(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
Source§fn float_argmax(
tensor: FloatTensor<Self>,
dim: usize,
out_dtype: IntDType,
) -> NdArrayTensor
fn float_argmax( tensor: FloatTensor<Self>, dim: usize, out_dtype: IntDType, ) -> NdArrayTensor
Source§fn float_argmin(
tensor: FloatTensor<Self>,
dim: usize,
out_dtype: IntDType,
) -> NdArrayTensor
fn float_argmin( tensor: FloatTensor<Self>, dim: usize, out_dtype: IntDType, ) -> NdArrayTensor
Source§fn float_exp(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_exp(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_log(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_log(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_prod(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_prod(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_prod_dim(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
fn float_prod_dim(tensor: FloatTensor<Self>, dim: usize) -> FloatTensor<Self>
Source§fn float_max(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_max(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_min(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_min(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_log1p(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_log1p(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_powf_scalar_impl(
tensor: FloatTensor<Self>,
value: Scalar,
) -> FloatTensor<Self>
fn float_powf_scalar_impl( tensor: FloatTensor<Self>, value: Scalar, ) -> FloatTensor<Self>
value. Read moreSource§fn float_sqrt(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_sqrt(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_abs(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_abs(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_cos(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_cos(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_cosh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_cosh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_sin(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_sin(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_sinh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_sinh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_tan(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_tan(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_tanh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_tanh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_acos(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_acos(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_acosh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_acosh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_asin(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_asin(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_asinh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_asinh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_atan(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_atan(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_atanh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_atanh(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_atan2(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_atan2( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_round(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_round(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_floor(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_floor(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_ceil(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_ceil(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_trunc(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_trunc(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_erf(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_erf(tensor: FloatTensor<Self>) -> FloatTensor<Self>
Source§fn float_cat(tensors: Vec<FloatTensor<Self>>, dim: usize) -> FloatTensor<Self>
fn float_cat(tensors: Vec<FloatTensor<Self>>, dim: usize) -> FloatTensor<Self>
Source§fn float_clamp_min(tensor: FloatTensor<Self>, min: Scalar) -> FloatTensor<Self>
fn float_clamp_min(tensor: FloatTensor<Self>, min: Scalar) -> FloatTensor<Self>
Source§fn float_clamp_max(tensor: FloatTensor<Self>, max: Scalar) -> FloatTensor<Self>
fn float_clamp_max(tensor: FloatTensor<Self>, max: Scalar) -> FloatTensor<Self>
Source§fn float_clamp(
tensor: FloatTensor<Self>,
min: Scalar,
max: Scalar,
) -> FloatTensor<Self>
fn float_clamp( tensor: FloatTensor<Self>, min: Scalar, max: Scalar, ) -> FloatTensor<Self>
Source§fn float_into_int(
tensor: FloatTensor<Self>,
out_dtype: IntDType,
) -> NdArrayTensor
fn float_into_int( tensor: FloatTensor<Self>, out_dtype: IntDType, ) -> NdArrayTensor
Source§fn float_powf(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_powf( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_permute(tensor: FloatTensor<Self>, axes: &[usize]) -> FloatTensor<Self>
fn float_permute(tensor: FloatTensor<Self>, axes: &[usize]) -> FloatTensor<Self>
Source§fn float_flip(tensor: FloatTensor<Self>, axes: &[usize]) -> FloatTensor<Self>
fn float_flip(tensor: FloatTensor<Self>, axes: &[usize]) -> FloatTensor<Self>
Source§fn float_sign(tensor: FloatTensor<Self>) -> FloatTensor<Self>
fn float_sign(tensor: FloatTensor<Self>) -> FloatTensor<Self>
tensor. Read moreSource§fn float_expand(tensor: FloatTensor<Self>, shape: Shape) -> FloatTensor<Self>
fn float_expand(tensor: FloatTensor<Self>, shape: Shape) -> FloatTensor<Self>
tensor to the given shape.Source§fn float_cast(tensor: FloatTensor<Self>, dtype: FloatDType) -> FloatTensor<Self>
fn float_cast(tensor: FloatTensor<Self>, dtype: FloatDType) -> FloatTensor<Self>
Source§fn float_grid_sample_2d(
tensor: FloatTensor<Self>,
grid: FloatTensor<Self>,
options: GridSampleOptions,
) -> FloatTensor<Self>
fn float_grid_sample_2d( tensor: FloatTensor<Self>, grid: FloatTensor<Self>, options: GridSampleOptions, ) -> FloatTensor<Self>
Source§fn float_unfold(
tensor: FloatTensor<Self>,
dim: usize,
size: usize,
step: usize,
) -> FloatTensor<Self>
fn float_unfold( tensor: FloatTensor<Self>, dim: usize, size: usize, step: usize, ) -> FloatTensor<Self>
Source§fn float_hypot(
lhs: FloatTensor<Self>,
rhs: FloatTensor<Self>,
) -> FloatTensor<Self>
fn float_hypot( lhs: FloatTensor<Self>, rhs: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn float_zeros(
shape: Shape,
device: &<B as BackendTypes>::Device,
dtype: FloatDType,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_zeros( shape: Shape, device: &<B as BackendTypes>::Device, dtype: FloatDType, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_ones(
shape: Shape,
device: &<B as BackendTypes>::Device,
dtype: FloatDType,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_ones( shape: Shape, device: &<B as BackendTypes>::Device, dtype: FloatDType, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_full(
shape: Shape,
fill_value: Scalar,
device: &<B as BackendTypes>::Device,
dtype: FloatDType,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_full( shape: Shape, fill_value: Scalar, device: &<B as BackendTypes>::Device, dtype: FloatDType, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_repeat_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
times: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_repeat_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, times: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_neg(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_neg( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_transpose(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_transpose( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_not_equal(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_not_equal( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn float_not_equal_elem(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_not_equal_elem( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn float_set_require_grad(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
_require_grad: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_set_require_grad( tensor: <B as BackendTypes>::FloatTensorPrimitive, _require_grad: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
require_grad flag of a tensor.Source§fn float_is_require_grad(
_tensor: &<B as BackendTypes>::FloatTensorPrimitive,
) -> bool
fn float_is_require_grad( _tensor: &<B as BackendTypes>::FloatTensorPrimitive, ) -> bool
require_grad flag of a tensor.Source§fn float_powi(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powi( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_powi_scalar(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powi_scalar( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_powi_scalar_impl(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powi_scalar_impl( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_powf_scalar(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
value: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powf_scalar( tensor: <B as BackendTypes>::FloatTensorPrimitive, value: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
value. Read moreSource§fn float_argtopk(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_argtopk( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn float_topk(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_topk( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_topk_with_indices(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_topk_with_indices( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn float_max_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_max_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_max_dim_with_indices(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices_dtype: IntDType,
) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_max_dim_with_indices( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, indices_dtype: IntDType, ) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn float_min_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_min_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_min_dim_with_indices(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices_dtype: IntDType,
) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_min_dim_with_indices( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, indices_dtype: IntDType, ) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn float_max_abs(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_max_abs( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_max_abs_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_max_abs_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_any(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_any( tensor: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read moreSource§fn float_any_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_any_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn float_all(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_all( tensor: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read moreSource§fn float_all_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_all_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn float_sort(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_sort( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
tensor by value in along a given dimension. Read moreSource§fn float_sort_with_indices(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
indices_dtype: IntDType,
) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_sort_with_indices( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, indices_dtype: IntDType, ) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
tensor by value in along a given dimension. Read moreSource§fn float_argsort(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_argsort( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read moreSource§fn float_is_nan(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_is_nan( tensor: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn float_is_inf(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_is_inf( tensor: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§impl IntTensorOps<NdArray> for NdArray
impl IntTensorOps<NdArray> for NdArray
Source§fn int_from_data(data: TensorData, _device: &NdArrayDevice) -> NdArrayTensor
fn int_from_data(data: TensorData, _device: &NdArrayDevice) -> NdArrayTensor
Source§async fn int_into_data(
tensor: NdArrayTensor,
) -> Result<TensorData, ExecutionError>
async fn int_into_data( tensor: NdArrayTensor, ) -> Result<TensorData, ExecutionError>
Source§fn int_to_device(
tensor: NdArrayTensor,
_device: &NdArrayDevice,
) -> NdArrayTensor
fn int_to_device( tensor: NdArrayTensor, _device: &NdArrayDevice, ) -> NdArrayTensor
Source§fn int_reshape(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
fn int_reshape(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
Source§fn int_slice(tensor: NdArrayTensor, slices: &[Slice]) -> NdArrayTensor
fn int_slice(tensor: NdArrayTensor, slices: &[Slice]) -> NdArrayTensor
Source§fn int_empty(
shape: Shape,
device: &NdArrayDevice,
dtype: IntDType,
) -> NdArrayTensor
fn int_empty( shape: Shape, device: &NdArrayDevice, dtype: IntDType, ) -> NdArrayTensor
Source§fn int_matmul(lhs: IntTensor<Self>, rhs: IntTensor<Self>) -> IntTensor<Self>
fn int_matmul(lhs: IntTensor<Self>, rhs: IntTensor<Self>) -> IntTensor<Self>
Source§fn int_mask_where(
tensor: NdArrayTensor,
mask: NdArrayTensor,
source: NdArrayTensor,
) -> NdArrayTensor
fn int_mask_where( tensor: NdArrayTensor, mask: NdArrayTensor, source: NdArrayTensor, ) -> NdArrayTensor
Source§fn int_mask_fill(
tensor: NdArrayTensor,
mask: NdArrayTensor,
value: Scalar,
) -> NdArrayTensor
fn int_mask_fill( tensor: NdArrayTensor, mask: NdArrayTensor, value: Scalar, ) -> NdArrayTensor
Source§fn int_slice_assign(
tensor: NdArrayTensor,
slices: &[Slice],
value: NdArrayTensor,
) -> NdArrayTensor
fn int_slice_assign( tensor: NdArrayTensor, slices: &[Slice], value: NdArrayTensor, ) -> NdArrayTensor
Source§fn int_cat(tensors: Vec<NdArrayTensor>, dim: usize) -> NdArrayTensor
fn int_cat(tensors: Vec<NdArrayTensor>, dim: usize) -> NdArrayTensor
Source§fn int_equal(
lhs: NdArrayTensor,
rhs: NdArrayTensor,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_equal( lhs: NdArrayTensor, rhs: NdArrayTensor, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_equal_elem(
lhs: NdArrayTensor,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_equal_elem( lhs: NdArrayTensor, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_greater(
lhs: NdArrayTensor,
rhs: NdArrayTensor,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_greater( lhs: NdArrayTensor, rhs: NdArrayTensor, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_greater_elem(
lhs: NdArrayTensor,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_greater_elem( lhs: NdArrayTensor, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_greater_equal(
lhs: NdArrayTensor,
rhs: NdArrayTensor,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_greater_equal( lhs: NdArrayTensor, rhs: NdArrayTensor, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_greater_equal_elem(
lhs: NdArrayTensor,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_greater_equal_elem( lhs: NdArrayTensor, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_lower(
lhs: NdArrayTensor,
rhs: NdArrayTensor,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_lower( lhs: NdArrayTensor, rhs: NdArrayTensor, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_lower_elem(
lhs: NdArrayTensor,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_lower_elem( lhs: NdArrayTensor, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_lower_equal(
lhs: NdArrayTensor,
rhs: NdArrayTensor,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_lower_equal( lhs: NdArrayTensor, rhs: NdArrayTensor, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_lower_equal_elem(
lhs: NdArrayTensor,
rhs: Scalar,
_out_dtype: BoolDType,
) -> NdArrayTensor
fn int_lower_equal_elem( lhs: NdArrayTensor, rhs: Scalar, _out_dtype: BoolDType, ) -> NdArrayTensor
Source§fn int_add(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn int_add(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn int_add_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn int_add_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn int_sub(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn int_sub(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn int_sub_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn int_sub_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn int_mul(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn int_mul(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn int_mul_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn int_mul_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn int_div(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn int_div(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn int_div_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn int_div_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn int_remainder(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn int_remainder(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn int_remainder_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn int_remainder_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn int_sum(tensor: NdArrayTensor) -> NdArrayTensor
fn int_sum(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn int_sum_dim(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_sum_dim(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_prod(tensor: NdArrayTensor) -> NdArrayTensor
fn int_prod(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn int_prod_dim(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_prod_dim(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_mean(tensor: NdArrayTensor) -> NdArrayTensor
fn int_mean(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn int_mean_dim(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_mean_dim(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_max(tensor: NdArrayTensor) -> NdArrayTensor
fn int_max(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn int_min(tensor: NdArrayTensor) -> NdArrayTensor
fn int_min(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn int_cumsum(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_cumsum(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_cumprod(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_cumprod(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_cummin(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_cummin(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_cummax(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_cummax(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_gather(
dim: usize,
tensor: NdArrayTensor,
indices: NdArrayTensor,
) -> NdArrayTensor
fn int_gather( dim: usize, tensor: NdArrayTensor, indices: NdArrayTensor, ) -> NdArrayTensor
Source§fn int_scatter_add(
dim: usize,
tensor: NdArrayTensor,
indices: NdArrayTensor,
value: NdArrayTensor,
) -> NdArrayTensor
fn int_scatter_add( dim: usize, tensor: NdArrayTensor, indices: NdArrayTensor, value: NdArrayTensor, ) -> NdArrayTensor
Source§fn int_scatter_nd(
data: NdArrayTensor,
indices: NdArrayTensor,
values: NdArrayTensor,
reduction: IndexingUpdateOp,
) -> NdArrayTensor
fn int_scatter_nd( data: NdArrayTensor, indices: NdArrayTensor, values: NdArrayTensor, reduction: IndexingUpdateOp, ) -> NdArrayTensor
Source§fn int_gather_nd(data: NdArrayTensor, indices: NdArrayTensor) -> NdArrayTensor
fn int_gather_nd(data: NdArrayTensor, indices: NdArrayTensor) -> NdArrayTensor
Source§fn int_select(
tensor: NdArrayTensor,
dim: usize,
indices: NdArrayTensor,
) -> NdArrayTensor
fn int_select( tensor: NdArrayTensor, dim: usize, indices: NdArrayTensor, ) -> NdArrayTensor
Source§fn int_select_add(
tensor: NdArrayTensor,
dim: usize,
indices: NdArrayTensor,
value: NdArrayTensor,
) -> NdArrayTensor
fn int_select_add( tensor: NdArrayTensor, dim: usize, indices: NdArrayTensor, value: NdArrayTensor, ) -> NdArrayTensor
Source§fn int_argmax(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_argmax(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_argmin(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
fn int_argmin(tensor: NdArrayTensor, dim: usize) -> NdArrayTensor
Source§fn int_clamp_min(tensor: NdArrayTensor, min: Scalar) -> NdArrayTensor
fn int_clamp_min(tensor: NdArrayTensor, min: Scalar) -> NdArrayTensor
Source§fn int_clamp_max(tensor: NdArrayTensor, max: Scalar) -> NdArrayTensor
fn int_clamp_max(tensor: NdArrayTensor, max: Scalar) -> NdArrayTensor
Source§fn int_clamp(tensor: NdArrayTensor, min: Scalar, max: Scalar) -> NdArrayTensor
fn int_clamp(tensor: NdArrayTensor, min: Scalar, max: Scalar) -> NdArrayTensor
Source§fn int_abs(tensor: NdArrayTensor) -> NdArrayTensor
fn int_abs(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn int_into_float(
tensor: NdArrayTensor,
out_dtype: FloatDType,
) -> FloatTensor<Self>
fn int_into_float( tensor: NdArrayTensor, out_dtype: FloatDType, ) -> FloatTensor<Self>
Source§fn int_swap_dims(
tensor: NdArrayTensor,
dim1: usize,
dim2: usize,
) -> NdArrayTensor
fn int_swap_dims( tensor: NdArrayTensor, dim1: usize, dim2: usize, ) -> NdArrayTensor
Source§fn int_random(
shape: Shape,
distribution: Distribution,
device: &NdArrayDevice,
dtype: IntDType,
) -> NdArrayTensor
fn int_random( shape: Shape, distribution: Distribution, device: &NdArrayDevice, dtype: IntDType, ) -> NdArrayTensor
Source§fn int_powi(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn int_powi(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn int_permute(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
fn int_permute(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
Source§fn int_flip(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
fn int_flip(tensor: NdArrayTensor, axes: &[usize]) -> NdArrayTensor
Source§fn int_sign(tensor: NdArrayTensor) -> NdArrayTensor
fn int_sign(tensor: NdArrayTensor) -> NdArrayTensor
tensor. Read moreSource§fn int_expand(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
fn int_expand(tensor: NdArrayTensor, shape: Shape) -> NdArrayTensor
tensor to the given shape.Source§fn bitwise_and(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bitwise_and(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn bitwise_and_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn bitwise_and_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn bitwise_or(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bitwise_or(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn bitwise_or_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn bitwise_or_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn bitwise_xor(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bitwise_xor(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn bitwise_xor_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn bitwise_xor_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn bitwise_not(tensor: NdArrayTensor) -> NdArrayTensor
fn bitwise_not(tensor: NdArrayTensor) -> NdArrayTensor
Source§fn bitwise_left_shift(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bitwise_left_shift(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn bitwise_left_shift_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn bitwise_left_shift_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn bitwise_right_shift(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
fn bitwise_right_shift(lhs: NdArrayTensor, rhs: NdArrayTensor) -> NdArrayTensor
Source§fn bitwise_right_shift_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
fn bitwise_right_shift_scalar(lhs: NdArrayTensor, rhs: Scalar) -> NdArrayTensor
Source§fn int_cast(tensor: IntTensor<Self>, dtype: IntDType) -> IntTensor<Self>
fn int_cast(tensor: IntTensor<Self>, dtype: IntDType) -> IntTensor<Self>
Source§fn int_unfold(
tensor: IntTensor<Self>,
dim: usize,
size: usize,
step: usize,
) -> IntTensor<Self>
fn int_unfold( tensor: IntTensor<Self>, dim: usize, size: usize, step: usize, ) -> IntTensor<Self>
Source§fn int_powi_scalar_impl(lhs: IntTensor<Self>, rhs: Scalar) -> IntTensor<Self>
fn int_powi_scalar_impl(lhs: IntTensor<Self>, rhs: Scalar) -> IntTensor<Self>
Source§fn int_repeat_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
times: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_repeat_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, times: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_not_equal(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_not_equal( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn int_not_equal_elem(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_not_equal_elem( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn int_square(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_square( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_powi_scalar(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_powi_scalar( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_neg(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_neg( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_zeros(
shape: Shape,
device: &<B as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_zeros( shape: Shape, device: &<B as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_ones(
shape: Shape,
device: &<B as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_ones( shape: Shape, device: &<B as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_full(
shape: Shape,
fill_value: Scalar,
device: &<B as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_full( shape: Shape, fill_value: Scalar, device: &<B as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_argtopk(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_argtopk( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_topk(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_topk( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_topk_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_topk_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn int_max_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_max_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_max_dim_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_max_dim_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn int_max_abs(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_max_abs( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_max_abs_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_max_abs_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_min_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_min_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_min_dim_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_min_dim_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn int_transpose(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_transpose( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_arange_step(
range: Range<i64>,
step: usize,
device: &<B as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_arange_step( range: Range<i64>, step: usize, device: &<B as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_arange(
range: Range<i64>,
device: &<B as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_arange( range: Range<i64>, device: &<B as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_any(
tensor: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_any( tensor: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read moreSource§fn int_any_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_any_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn int_all(
tensor: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_all( tensor: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read moreSource§fn int_all_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_all_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn int_sort(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_sort( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> <B as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read moreSource§fn int_sort_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_sort_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
tensor by value along a given dimension. Read moreSource§fn int_argsort(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_argsort( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> <B as BackendTypes>::IntTensorPrimitive
tensor by value
along a given dimension. Read moreSource§impl ModuleOps<NdArray> for NdArray
impl ModuleOps<NdArray> for NdArray
Source§fn conv2d(
x: NdArrayTensor,
weight: NdArrayTensor,
bias: Option<NdArrayTensor>,
options: ConvOptions<2>,
) -> NdArrayTensor
fn conv2d( x: NdArrayTensor, weight: NdArrayTensor, bias: Option<NdArrayTensor>, options: ConvOptions<2>, ) -> NdArrayTensor
Source§fn deform_conv2d(
x: FloatTensor<Self>,
offset: FloatTensor<Self>,
weight: FloatTensor<Self>,
mask: Option<FloatTensor<Self>>,
bias: Option<FloatTensor<Self>>,
options: DeformConvOptions<2>,
) -> FloatTensor<Self>
fn deform_conv2d( x: FloatTensor<Self>, offset: FloatTensor<Self>, weight: FloatTensor<Self>, mask: Option<FloatTensor<Self>>, bias: Option<FloatTensor<Self>>, options: DeformConvOptions<2>, ) -> FloatTensor<Self>
Source§fn deform_conv2d_backward(
x: FloatTensor<Self>,
offset: FloatTensor<Self>,
weight: FloatTensor<Self>,
mask: Option<FloatTensor<Self>>,
bias: Option<FloatTensor<Self>>,
output_grad: FloatTensor<Self>,
options: DeformConvOptions<2>,
) -> DeformConv2dBackward<Self>
fn deform_conv2d_backward( x: FloatTensor<Self>, offset: FloatTensor<Self>, weight: FloatTensor<Self>, mask: Option<FloatTensor<Self>>, bias: Option<FloatTensor<Self>>, output_grad: FloatTensor<Self>, options: DeformConvOptions<2>, ) -> DeformConv2dBackward<Self>
Source§fn conv_transpose2d(
x: FloatTensor<Self>,
weight: FloatTensor<Self>,
bias: Option<FloatTensor<Self>>,
options: ConvTransposeOptions<2>,
) -> FloatTensor<Self>
fn conv_transpose2d( x: FloatTensor<Self>, weight: FloatTensor<Self>, bias: Option<FloatTensor<Self>>, options: ConvTransposeOptions<2>, ) -> FloatTensor<Self>
Source§fn avg_pool2d(
x: FloatTensor<Self>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
count_include_pad: bool,
ceil_mode: bool,
) -> FloatTensor<Self>
fn avg_pool2d( x: FloatTensor<Self>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, ceil_mode: bool, ) -> FloatTensor<Self>
Source§fn avg_pool2d_backward(
x: FloatTensor<Self>,
grad: FloatTensor<Self>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
count_include_pad: bool,
ceil_mode: bool,
) -> FloatTensor<Self>
fn avg_pool2d_backward( x: FloatTensor<Self>, grad: FloatTensor<Self>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, ceil_mode: bool, ) -> FloatTensor<Self>
Source§fn max_pool2d(
x: FloatTensor<Self>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
) -> FloatTensor<Self>
fn max_pool2d( x: FloatTensor<Self>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, ) -> FloatTensor<Self>
Source§fn max_pool2d_with_indices(
x: FloatTensor<Self>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
indices_dtype: IntDType,
) -> MaxPool2dWithIndices<Self>
fn max_pool2d_with_indices( x: FloatTensor<Self>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, indices_dtype: IntDType, ) -> MaxPool2dWithIndices<Self>
Source§fn max_pool2d_with_indices_backward(
x: FloatTensor<Self>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
output_grad: FloatTensor<Self>,
indices: NdArrayTensor,
) -> MaxPool2dBackward<Self>
fn max_pool2d_with_indices_backward( x: FloatTensor<Self>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, output_grad: FloatTensor<Self>, indices: NdArrayTensor, ) -> MaxPool2dBackward<Self>
Source§fn adaptive_avg_pool2d(
x: FloatTensor<Self>,
output_size: [usize; 2],
) -> FloatTensor<Self>
fn adaptive_avg_pool2d( x: FloatTensor<Self>, output_size: [usize; 2], ) -> FloatTensor<Self>
Source§fn adaptive_avg_pool2d_backward(
x: FloatTensor<Self>,
grad: FloatTensor<Self>,
) -> FloatTensor<Self>
fn adaptive_avg_pool2d_backward( x: FloatTensor<Self>, grad: FloatTensor<Self>, ) -> FloatTensor<Self>
Source§fn interpolate(
x: FloatTensor<Self>,
output_size: [usize; 2],
options: InterpolateOptions,
) -> FloatTensor<Self>
fn interpolate( x: FloatTensor<Self>, output_size: [usize; 2], options: InterpolateOptions, ) -> FloatTensor<Self>
Source§fn interpolate_backward(
x: FloatTensor<Self>,
grad: FloatTensor<Self>,
output_size: [usize; 2],
options: InterpolateOptions,
) -> FloatTensor<Self>
fn interpolate_backward( x: FloatTensor<Self>, grad: FloatTensor<Self>, output_size: [usize; 2], options: InterpolateOptions, ) -> FloatTensor<Self>
Source§fn conv3d(
x: FloatTensor<Self>,
weight: FloatTensor<Self>,
bias: Option<FloatTensor<Self>>,
options: ConvOptions<3>,
) -> FloatTensor<Self>
fn conv3d( x: FloatTensor<Self>, weight: FloatTensor<Self>, bias: Option<FloatTensor<Self>>, options: ConvOptions<3>, ) -> FloatTensor<Self>
Source§fn conv_transpose3d(
x: FloatTensor<Self>,
weight: FloatTensor<Self>,
bias: Option<FloatTensor<Self>>,
options: ConvTransposeOptions<3>,
) -> FloatTensor<Self>
fn conv_transpose3d( x: FloatTensor<Self>, weight: FloatTensor<Self>, bias: Option<FloatTensor<Self>>, options: ConvTransposeOptions<3>, ) -> FloatTensor<Self>
Source§fn attention(
query: FloatTensor<Self>,
key: FloatTensor<Self>,
value: FloatTensor<Self>,
mask: Option<BoolTensor<Self>>,
attn_bias: Option<FloatTensor<Self>>,
options: AttentionModuleOptions,
) -> FloatTensor<Self>
fn attention( query: FloatTensor<Self>, key: FloatTensor<Self>, value: FloatTensor<Self>, mask: Option<BoolTensor<Self>>, attn_bias: Option<FloatTensor<Self>>, options: AttentionModuleOptions, ) -> FloatTensor<Self>
Source§fn rfft(
_signal: FloatTensor<Self>,
_dim: usize,
_n: Option<usize>,
) -> (FloatTensor<Self>, FloatTensor<Self>)
fn rfft( _signal: FloatTensor<Self>, _dim: usize, _n: Option<usize>, ) -> (FloatTensor<Self>, FloatTensor<Self>)
Source§fn irfft(
_spectrum_re: FloatTensor<Self>,
_spectrum_im: FloatTensor<Self>,
_dim: usize,
_n: Option<usize>,
) -> FloatTensor<Self>
fn irfft( _spectrum_re: FloatTensor<Self>, _spectrum_im: FloatTensor<Self>, _dim: usize, _n: Option<usize>, ) -> FloatTensor<Self>
Source§fn embedding(
weights: <B as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn embedding( weights: <B as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn embedding_backward(
weights: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn embedding_backward( weights: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn linear(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
bias: Option<<B as BackendTypes>::FloatTensorPrimitive>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, bias: Option<<B as BackendTypes>::FloatTensorPrimitive>, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn linear_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn linear_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn linear_bias_backward(
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn linear_bias_backward( output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
bias: Option<<B as BackendTypes>::FloatTensorPrimitive>,
options: ConvOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv1d( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, bias: Option<<B as BackendTypes>::FloatTensorPrimitive>, options: ConvOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn conv1d_x_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv1d_x_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv1d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv1d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv1d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv1d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv2d_x_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv2d_x_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv2d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv2d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv2d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv2d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv3d_x_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv3d_x_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv3d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv3d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv3d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv3d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv_transpose1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
bias: Option<<B as BackendTypes>::FloatTensorPrimitive>,
options: ConvTransposeOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, bias: Option<<B as BackendTypes>::FloatTensorPrimitive>, options: ConvTransposeOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn conv_transpose1d_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv_transpose1d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<1>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<1>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv_transpose1d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose1d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv_transpose2d_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose2d_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv_transpose2d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<2>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose2d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<2>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv_transpose2d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose2d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn conv_transpose3d_x_backward(
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose3d_x_backward( weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
x.Source§fn conv_transpose3d_weight_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
weight: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
options: ConvTransposeOptions<3>,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose3d_weight_backward( x: <B as BackendTypes>::FloatTensorPrimitive, weight: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, options: ConvTransposeOptions<3>, ) -> <B as BackendTypes>::FloatTensorPrimitive
weight.Source§fn conv_transpose3d_bias_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
bias: <B as BackendTypes>::FloatTensorPrimitive,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn conv_transpose3d_bias_backward( x: <B as BackendTypes>::FloatTensorPrimitive, bias: <B as BackendTypes>::FloatTensorPrimitive, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
bias.Source§fn unfold4d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 2],
options: UnfoldOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn unfold4d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 2], options: UnfoldOptions, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn avg_pool1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
count_include_pad: bool,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn avg_pool1d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, count_include_pad: bool, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn avg_pool1d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
count_include_pad: bool,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn avg_pool1d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, count_include_pad: bool, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn adaptive_avg_pool1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
output_size: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool1d( x: <B as BackendTypes>::FloatTensorPrimitive, output_size: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn adaptive_avg_pool1d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool1d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn max_pool1d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool1d_with_indices(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
indices_dtype: IntDType,
) -> MaxPool1dWithIndices<B>
fn max_pool1d_with_indices( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, indices_dtype: IntDType, ) -> MaxPool1dWithIndices<B>
Source§fn max_pool1d_with_indices_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> MaxPool1dBackward<B>
fn max_pool1d_with_indices_backward( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, output_grad: <B as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> MaxPool1dBackward<B>
Source§fn layer_norm(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
beta: Option<<B as BackendTypes>::FloatTensorPrimitive>,
epsilon: f64,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn layer_norm( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, beta: Option<<B as BackendTypes>::FloatTensorPrimitive>, epsilon: f64, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn ctc_loss(
log_probs: <B as BackendTypes>::FloatTensorPrimitive,
targets: <B as BackendTypes>::IntTensorPrimitive,
input_lengths: <B as BackendTypes>::IntTensorPrimitive,
target_lengths: <B as BackendTypes>::IntTensorPrimitive,
blank: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn ctc_loss( log_probs: <B as BackendTypes>::FloatTensorPrimitive, targets: <B as BackendTypes>::IntTensorPrimitive, input_lengths: <B as BackendTypes>::IntTensorPrimitive, target_lengths: <B as BackendTypes>::IntTensorPrimitive, blank: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn has_ctc_loss_backward() -> bool
fn has_ctc_loss_backward() -> bool
Source§fn ctc_loss_backward(
_log_probs: <B as BackendTypes>::FloatTensorPrimitive,
_targets: <B as BackendTypes>::IntTensorPrimitive,
_input_lengths: <B as BackendTypes>::IntTensorPrimitive,
_target_lengths: <B as BackendTypes>::IntTensorPrimitive,
_grad_loss: <B as BackendTypes>::FloatTensorPrimitive,
_blank: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn ctc_loss_backward( _log_probs: <B as BackendTypes>::FloatTensorPrimitive, _targets: <B as BackendTypes>::IntTensorPrimitive, _input_lengths: <B as BackendTypes>::IntTensorPrimitive, _target_lengths: <B as BackendTypes>::IntTensorPrimitive, _grad_loss: <B as BackendTypes>::FloatTensorPrimitive, _blank: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§impl QTensorOps<NdArray> for NdArray
impl QTensorOps<NdArray> for NdArray
Source§fn q_matmul(
lhs: TensorPrimitive<Self>,
rhs: TensorPrimitive<Self>,
) -> TensorPrimitive<Self>
fn q_matmul( lhs: TensorPrimitive<Self>, rhs: TensorPrimitive<Self>, ) -> TensorPrimitive<Self>
Matrix multiplication with at least one quantized operand.
Fast path — BitNet b1.58 ternary weights: when rhs is a Q2S symmetric per-tensor weight
(values in {-1, 0, +1}) and lhs is an f32 activation, the product is computed WITHOUT
dequantizing the weight and WITHOUT a single multiply in the inner loop: +1 => add,
-1 => subtract, 0 => skip, then the per-tensor scale γ is applied once per output
element — the multiply-free compute path BitNet is built on. The result matches the
dequantize-then-float_matmul path to within f32 rounding.
Every other case (Q8, per-block, non-f32 activation, batched weights, …) falls through to
the regular dequantize -> float_matmul path — byte-for-byte the default behaviour.
Source§fn q_from_data(
data: TensorData,
_device: &NdArrayDevice,
) -> QuantizedTensor<Self>
fn q_from_data( data: TensorData, _device: &NdArrayDevice, ) -> QuantizedTensor<Self>
Source§fn quantize(
tensor: FloatTensor<Self>,
scheme: &QuantScheme,
qparams: QuantizationParametersPrimitive<Self>,
) -> QuantizedTensor<Self>
fn quantize( tensor: FloatTensor<Self>, scheme: &QuantScheme, qparams: QuantizationParametersPrimitive<Self>, ) -> QuantizedTensor<Self>
Source§fn dequantize(
tensor: QuantizedTensor<Self>,
dtype: FloatDType,
) -> FloatTensor<Self>
fn dequantize( tensor: QuantizedTensor<Self>, dtype: FloatDType, ) -> FloatTensor<Self>
Source§fn q_to_device(
tensor: QuantizedTensor<Self>,
_device: &NdArrayDevice,
) -> QuantizedTensor<Self>
fn q_to_device( tensor: QuantizedTensor<Self>, _device: &NdArrayDevice, ) -> QuantizedTensor<Self>
Source§fn q_reshape(
tensor: QuantizedTensor<Self>,
shape: Shape,
) -> QuantizedTensor<Self>
fn q_reshape( tensor: QuantizedTensor<Self>, shape: Shape, ) -> QuantizedTensor<Self>
Source§async fn q_into_data(
tensor: QuantizedTensor<Self>,
) -> Result<TensorData, ExecutionError>
async fn q_into_data( tensor: QuantizedTensor<Self>, ) -> Result<TensorData, ExecutionError>
Source§fn q_swap_dims(
tensor: QuantizedTensor<Self>,
dim1: usize,
dim2: usize,
) -> QuantizedTensor<Self>
fn q_swap_dims( tensor: QuantizedTensor<Self>, dim1: usize, dim2: usize, ) -> QuantizedTensor<Self>
Source§fn q_permute(
tensor: QuantizedTensor<Self>,
axes: &[usize],
) -> QuantizedTensor<Self>
fn q_permute( tensor: QuantizedTensor<Self>, axes: &[usize], ) -> QuantizedTensor<Self>
Source§fn q_flip(
tensor: QuantizedTensor<Self>,
axes: &[usize],
) -> QuantizedTensor<Self>
fn q_flip( tensor: QuantizedTensor<Self>, axes: &[usize], ) -> QuantizedTensor<Self>
Source§fn q_gather(
dim: usize,
tensor: QuantizedTensor<Self>,
indices: IntTensor<Self>,
) -> QuantizedTensor<Self>
fn q_gather( dim: usize, tensor: QuantizedTensor<Self>, indices: IntTensor<Self>, ) -> QuantizedTensor<Self>
Source§fn q_select(
tensor: QuantizedTensor<Self>,
dim: usize,
indices: IntTensor<Self>,
) -> QuantizedTensor<Self>
fn q_select( tensor: QuantizedTensor<Self>, dim: usize, indices: IntTensor<Self>, ) -> QuantizedTensor<Self>
Source§fn q_slice(
tensor: QuantizedTensor<Self>,
slices: &[Slice],
) -> QuantizedTensor<Self>
fn q_slice( tensor: QuantizedTensor<Self>, slices: &[Slice], ) -> QuantizedTensor<Self>
Source§fn q_argmax(
tensor: QuantizedTensor<Self>,
dim: usize,
out_dtype: IntDType,
) -> IntTensor<Self>
fn q_argmax( tensor: QuantizedTensor<Self>, dim: usize, out_dtype: IntDType, ) -> IntTensor<Self>
Source§fn q_argmin(
tensor: QuantizedTensor<Self>,
dim: usize,
out_dtype: IntDType,
) -> IntTensor<Self>
fn q_argmin( tensor: QuantizedTensor<Self>, dim: usize, out_dtype: IntDType, ) -> IntTensor<Self>
Source§fn q_expand(
tensor: QuantizedTensor<Self>,
shape: Shape,
) -> QuantizedTensor<Self>
fn q_expand( tensor: QuantizedTensor<Self>, shape: Shape, ) -> QuantizedTensor<Self>
tensor to the given shape.Source§fn quantize_dynamic(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
scheme: &QuantScheme,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn quantize_dynamic( tensor: <B as BackendTypes>::FloatTensorPrimitive, scheme: &QuantScheme, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_detach(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_detach( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_set_require_grad(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
_require_grad: bool,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_set_require_grad( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, _require_grad: bool, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
require_grad flag of a tensor.Source§fn q_is_require_grad(
_tensor: &<B as BackendTypes>::QuantizedTensorPrimitive,
) -> bool
fn q_is_require_grad( _tensor: &<B as BackendTypes>::QuantizedTensorPrimitive, ) -> bool
require_grad flag of a tensor.Source§fn q_transpose(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_transpose( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_repeat_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
times: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_repeat_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, times: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_add(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_add( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_add_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_add_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_clamp_min(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
min: Scalar,
) -> TensorPrimitive<B>
fn q_clamp_min( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, min: Scalar, ) -> TensorPrimitive<B>
Source§fn q_clamp_max(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
max: Scalar,
) -> TensorPrimitive<B>
fn q_clamp_max( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, max: Scalar, ) -> TensorPrimitive<B>
Source§fn q_clamp(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
min: Scalar,
max: Scalar,
) -> TensorPrimitive<B>
fn q_clamp( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, min: Scalar, max: Scalar, ) -> TensorPrimitive<B>
Source§fn q_sub(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sub( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sub_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_sub_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_mul(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_mul( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_mul_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_mul_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_div(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_div( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_div_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_div_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_neg(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_neg( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_recip(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_recip( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sum(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sum( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sum_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_sum_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_prod(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_prod( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_prod_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_prod_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_mean(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_mean( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_mean_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_mean_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cumsum(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cumsum( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cumprod(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cumprod( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cummin(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cummin( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_cummax(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cummax( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
Source§fn q_exp(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_exp( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_log(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_log( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_log1p(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_log1p( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_powf(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_powf( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_powi(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> TensorPrimitive<B>
fn q_powi( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_powi_scalar(
lhs: <B as BackendTypes>::QuantizedTensorPrimitive,
rhs: Scalar,
) -> TensorPrimitive<B>
fn q_powi_scalar( lhs: <B as BackendTypes>::QuantizedTensorPrimitive, rhs: Scalar, ) -> TensorPrimitive<B>
Source§fn q_powf_scalar(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
value: Scalar,
) -> TensorPrimitive<B>
fn q_powf_scalar( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, value: Scalar, ) -> TensorPrimitive<B>
Source§fn q_sqrt(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sqrt( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_abs(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_abs( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_cos(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_cos( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sin(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sin( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_tan(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_tan( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_cosh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_cosh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_sinh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sinh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_tanh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_tanh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_erf(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_erf( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
Source§fn q_cat(
tensors: Vec<<B as BackendTypes>::QuantizedTensorPrimitive>,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_cat( tensors: Vec<<B as BackendTypes>::QuantizedTensorPrimitive>, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_argtopk(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn q_argtopk( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn q_topk(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_topk( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_topk_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_topk_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn q_max(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_max_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_max_dim_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_max_dim_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn q_min(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_min( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_min_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_min_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_min_dim_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_min_dim_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
Source§fn q_max_abs(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max_abs( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_max_abs_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max_abs_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_any(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_any( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read moreSource§fn q_any_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_any_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn q_all(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_all( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read moreSource§fn q_all_dim(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn q_all_dim( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
Source§fn q_sort(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
descending: bool,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_sort( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, descending: bool, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
tensor by value in along a given dimension. Read moreSource§fn q_sort_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_sort_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, descending: bool, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
tensor by value in along a given dimension. Read moreSource§fn q_argsort(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn q_argsort( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, descending: bool, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read moreSource§impl TransactionOps<NdArray> for NdArray
impl TransactionOps<NdArray> for NdArray
Source§fn tr_execute(
transaction: TransactionPrimitive<B>,
) -> impl Future<Output = Result<TransactionPrimitiveData, ExecutionError>> + Send
fn tr_execute( transaction: TransactionPrimitive<B>, ) -> impl Future<Output = Result<TransactionPrimitiveData, ExecutionError>> + Send
Auto Trait Implementations§
impl Freeze for NdArray
impl RefUnwindSafe for NdArray
impl Send for NdArray
impl Sync for NdArray
impl Unpin for NdArray
impl UnsafeUnpin for NdArray
impl UnwindSafe for NdArray
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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