pub struct NdArray;burn-ndarray is deprecated and will be removed in a future release. Use burn-flex for pure-Rust CPU execution (std, no_std, WebAssembly), or one of the CubeCL backends (burn-cuda, burn-rocm, burn-wgpu, burn-cpu) for GPU acceleration.
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 memory_install_pools(
device: &Self::Device,
layout: MemoryPoolLayout,
) -> Result<(), InstallMemoryPoolsError>
fn memory_install_pools( device: &Self::Device, layout: MemoryPoolLayout, ) -> Result<(), InstallMemoryPoolsError>
Sourceยงfn memory_pool_report(device: &Self::Device) -> Option<Vec<SlicedPoolReport>>
fn memory_pool_report(device: &Self::Device) -> Option<Vec<SlicedPoolReport>>
None on a backend that does not report one, or whose
stream has failed. Read moreSourceยงfn memory_pool_usage(device: &Self::Device) -> Option<MemoryPoolUsage>
fn memory_pool_usage(device: &Self::Device) -> Option<MemoryPoolUsage>
None on a backend that does not
report one, or whose stream has failed.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_mask_select(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
) -> impl Future<Output = <B as BackendTypes>::BoolTensorPrimitive> + Send + 'static
fn bool_mask_select( tensor: <B as BackendTypes>::BoolTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, ) -> impl Future<Output = <B as BackendTypes>::BoolTensorPrimitive> + Send + 'static
Sourceยง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(
dim: usize,
tensor: FloatTensor<Self>,
indices: NdArrayTensor,
value: FloatTensor<Self>,
update: IndexingUpdateOp,
) -> FloatTensor<Self>
fn float_scatter( dim: usize, tensor: FloatTensor<Self>, indices: NdArrayTensor, value: FloatTensor<Self>, update: IndexingUpdateOp, ) -> 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_select_assign(
tensor: FloatTensor<Self>,
dim: usize,
indices: NdArrayTensor,
value: FloatTensor<Self>,
update: IndexingUpdateOp,
) -> FloatTensor<Self>
fn float_select_assign( tensor: FloatTensor<Self>, dim: usize, indices: NdArrayTensor, value: FloatTensor<Self>, update: IndexingUpdateOp, ) -> 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_mask_select(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
) -> impl Future<Output = <B as BackendTypes>::FloatTensorPrimitive> + Send + 'static
fn float_mask_select( tensor: <B as BackendTypes>::FloatTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, ) -> impl Future<Output = <B as BackendTypes>::FloatTensorPrimitive> + Send + 'static
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(
dim: usize,
tensor: NdArrayTensor,
indices: NdArrayTensor,
value: NdArrayTensor,
update: IndexingUpdateOp,
) -> NdArrayTensor
fn int_scatter( dim: usize, tensor: NdArrayTensor, indices: NdArrayTensor, value: NdArrayTensor, update: IndexingUpdateOp, ) -> 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_select_assign(
tensor: NdArrayTensor,
dim: usize,
indices: NdArrayTensor,
value: NdArrayTensor,
update: IndexingUpdateOp,
) -> NdArrayTensor
fn int_select_assign( tensor: NdArrayTensor, dim: usize, indices: NdArrayTensor, value: NdArrayTensor, update: IndexingUpdateOp, ) -> 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_mask_select(
tensor: <B as BackendTypes>::IntTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
) -> impl Future<Output = <B as BackendTypes>::IntTensorPrimitive> + Send + 'static
fn int_mask_select( tensor: <B as BackendTypes>::IntTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, ) -> impl Future<Output = <B as BackendTypes>::IntTensorPrimitive> + Send + 'static
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 adaptive_avg_pool3d(
x: FloatTensor<Self>,
output_size: [usize; 3],
) -> FloatTensor<Self>
fn adaptive_avg_pool3d( x: FloatTensor<Self>, output_size: [usize; 3], ) -> FloatTensor<Self>
Sourceยงfn adaptive_avg_pool3d_backward(
x: FloatTensor<Self>,
grad: FloatTensor<Self>,
) -> FloatTensor<Self>
fn adaptive_avg_pool3d_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 batch_norm(
x: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
beta: <B as BackendTypes>::FloatTensorPrimitive,
mean: <B as BackendTypes>::FloatTensorPrimitive,
variance: <B as BackendTypes>::FloatTensorPrimitive,
epsilon: f64,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn batch_norm( x: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, beta: <B as BackendTypes>::FloatTensorPrimitive, mean: <B as BackendTypes>::FloatTensorPrimitive, variance: <B as BackendTypes>::FloatTensorPrimitive, epsilon: f64, ) -> <B as BackendTypes>::FloatTensorPrimitive
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 fold4d(
x: <B as BackendTypes>::FloatTensorPrimitive,
output_size: [usize; 2],
kernel_size: [usize; 2],
options: UnfoldOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn fold4d( x: <B as BackendTypes>::FloatTensorPrimitive, output_size: [usize; 2], 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