pub struct Host<E = f32, I = i32> { /* private fields */ }Expand description
The Host backend, a fast, portable CPU backend for Ruda.
The E and I type parameters exist purely to match the shape of other Ruda
backends (e.g. NdArray<E, I, Q>) so Host slots into ruda-dispatch’s
generic dispatch macros. The body of Host uses runtime DType dispatch, so
both parameters are phantom and unused at runtime.
§Limitations of the phantom generics
The Backend impl is provided only for the default instantiation
Host<f32, i32>. Writing Host (with no arguments) resolves to the default
and works exactly as before. Writing Host<f64, i64> or any other non-default
combination is a valid Rust type but will not satisfy trait bounds requiring
Backend, producing errors like:
the trait bound `Host<f64, i64>: Backend` is not satisfiedThis is a deliberate compromise for the initial migration: making Host
generic over element types at the trait-impl level is a follow-up that would
require rewriting all impl FooOps<Host> for Host blocks plus internal
Host::method() calls (tracked in
#4762). Until then, treat
the generic parameters as opaque shape placeholders; real element-type
selection happens at runtime via DType.
The bound is locked in by a compile-fail doctest so that if someone later
makes the Backend impl generic over E/I, this documentation gets
flagged as out of date:
use ruda_tensor::Backend;
use ruda_tensor_host::Host;
fn requires_backend<B: Backend>() {}
requires_backend::<Host<f64, i64>>();Trait Implementations§
Source§impl ActivationOps<Host> for Host
impl ActivationOps<Host> for Host
Source§fn relu(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn relu(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn relu_backward(
output: FloatTensor<Host>,
grad: FloatTensor<Host>,
) -> FloatTensor<Host>
fn relu_backward( output: FloatTensor<Host>, grad: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn leaky_relu(
tensor: FloatTensor<Host>,
negative_slope: Scalar,
) -> FloatTensor<Host>
fn leaky_relu( tensor: FloatTensor<Host>, negative_slope: Scalar, ) -> FloatTensor<Host>
Source§fn prelu(
tensor: FloatTensor<Host>,
alpha: FloatTensor<Host>,
) -> FloatTensor<Host>
fn prelu( tensor: FloatTensor<Host>, alpha: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn gelu(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn gelu(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn gelu_backward(
x: FloatTensor<Host>,
grad: FloatTensor<Host>,
) -> FloatTensor<Host>
fn gelu_backward( x: FloatTensor<Host>, grad: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn sigmoid(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn sigmoid(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn sigmoid_backward(
output: FloatTensor<Host>,
grad: FloatTensor<Host>,
) -> FloatTensor<Host>
fn sigmoid_backward( output: FloatTensor<Host>, grad: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn hard_sigmoid(
tensor: FloatTensor<Host>,
alpha: Scalar,
beta: Scalar,
) -> FloatTensor<Host>
fn hard_sigmoid( tensor: FloatTensor<Host>, alpha: Scalar, beta: Scalar, ) -> FloatTensor<Host>
Source§fn log_sigmoid(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn log_sigmoid(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn log_sigmoid_backward(
x: FloatTensor<Host>,
grad: FloatTensor<Host>,
) -> FloatTensor<Host>
fn log_sigmoid_backward( x: FloatTensor<Host>, grad: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn softmax(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn softmax(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn silu(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn silu( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <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§impl Backend for Host
impl Backend for Host
Source§fn flush(_device: &Self::Device) -> Result<(), ExecutionError>
fn flush(_device: &Self::Device) -> Result<(), ExecutionError>
Source§fn seed(_device: &Self::Device, seed: u64)
fn seed(_device: &Self::Device, seed: u64)
fn rng_state(_device: &Self::Device) -> Result<Vec<u8>, ExecutionError>
fn restore_rng_state( _device: &Self::Device, state: &[u8], ) -> Result<(), ExecutionError>
Source§fn device_count(_type_id: u16) -> usize
fn device_count(_type_id: 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 dtype_usage(_device: &Self::Device, dtype: DType) -> DTypeUsageSet
fn dtype_usage(_device: &Self::Device, dtype: DType) -> DTypeUsageSet
Source§fn ad_enabled(_device: &Self::Device) -> bool
fn ad_enabled(_device: &Self::Device) -> bool
Source§fn autodiff_creation_context(device: &Self::Device) -> AutodiffContext
fn autodiff_creation_context(device: &Self::Device) -> AutodiffContext
Source§fn with_autodiff_creation_context<R>(
device: &Self::Device,
context: AutodiffContext,
func: impl FnOnce() -> R,
) -> R
fn with_autodiff_creation_context<R>( device: &Self::Device, context: AutodiffContext, func: impl FnOnce() -> R, ) -> R
Source§fn memory_persistent_allocations<Output, Input, Func>(
device: &Self::Device,
input: Input,
func: Func,
) -> Output
fn memory_persistent_allocations<Output, Input, Func>( device: &Self::Device, input: Input, func: Func, ) -> Output
Source§fn memory_cleanup(device: &Self::Device)
fn memory_cleanup(device: &Self::Device)
Source§fn sync(_device: &Self::Device) -> Result<(), ExecutionError>
fn sync(_device: &Self::Device) -> Result<(), ExecutionError>
Source§fn profile<O>(
device: &Self::Device,
_options: ProfileOptions,
func: impl FnOnce() -> O + Send,
) -> Result<(O, ProfileDuration), ExecutionError>where
O: Send + 'static,
fn profile<O>(
device: &Self::Device,
_options: ProfileOptions,
func: impl FnOnce() -> O + Send,
) -> Result<(O, ProfileDuration), ExecutionError>where
O: Send + 'static,
Source§fn profile_start(
_device: &Self::Device,
) -> Result<Option<ProfileToken>, ExecutionError>
fn profile_start( _device: &Self::Device, ) -> Result<Option<ProfileToken>, ExecutionError>
None for system-only timing.Source§fn profile_end(
_device: &Self::Device,
_token: ProfileToken,
_options: ProfileOptions,
) -> Result<ProfileDuration, ExecutionError>
fn profile_end( _device: &Self::Device, _token: ProfileToken, _options: ProfileOptions, ) -> Result<ProfileDuration, ExecutionError>
Source§fn profile_abandon(device: &Self::Device, token: ProfileToken)
fn profile_abandon(device: &Self::Device, token: ProfileToken)
Source§fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
Source§fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
Source§fn graph_stop_capture(
_device: &Self::Device,
) -> Result<BackendGraph, ExecutionError>
fn graph_stop_capture( _device: &Self::Device, ) -> Result<BackendGraph, ExecutionError>
Source§fn graph_abort_capture(_device: &Self::Device)
fn graph_abort_capture(_device: &Self::Device)
Source§unsafe fn graph_replay(
_device: &Self::Device,
graph: &BackendGraph,
) -> Result<(), ExecutionError>
unsafe fn graph_replay( _device: &Self::Device, graph: &BackendGraph, ) -> Result<(), ExecutionError>
Source§impl BackendIr for Host
impl BackendIr for Host
Source§type Handle = HandleKind<Host>
type Handle = HandleKind<Host>
Source§fn float_tensor(handle: TensorHandle<Self::Handle>) -> HostTensor
fn float_tensor(handle: TensorHandle<Self::Handle>) -> HostTensor
Source§fn int_tensor(handle: TensorHandle<Self::Handle>) -> HostTensor
fn int_tensor(handle: TensorHandle<Self::Handle>) -> HostTensor
Source§fn bool_tensor(handle: TensorHandle<Self::Handle>) -> HostTensor
fn bool_tensor(handle: TensorHandle<Self::Handle>) -> HostTensor
Source§fn quantized_tensor(handle: TensorHandle<Self::Handle>) -> HostQTensor
fn quantized_tensor(handle: TensorHandle<Self::Handle>) -> HostQTensor
Source§fn float_tensor_handle(tensor: HostTensor) -> Self::Handle
fn float_tensor_handle(tensor: HostTensor) -> Self::Handle
Source§fn int_tensor_handle(tensor: HostTensor) -> Self::Handle
fn int_tensor_handle(tensor: HostTensor) -> Self::Handle
Source§fn bool_tensor_handle(tensor: HostTensor) -> Self::Handle
fn bool_tensor_handle(tensor: HostTensor) -> Self::Handle
Source§fn quantized_tensor_handle(tensor: HostQTensor) -> Self::Handle
fn quantized_tensor_handle(tensor: HostQTensor) -> Self::Handle
Source§impl BackendTypes for Host
impl BackendTypes for Host
Source§type FloatElem = f32
type FloatElem = f32
Default float element type. Determines the dtype for .float() conversions and
Tensor::from_data when no explicit dtype is provided.
Prefer explicit dtypes via (&device, DType::F32).
Source§type IntElem = i32
type IntElem = i32
Default int element type. Determines the dtype for .int() conversions and
Tensor::from_data when no explicit dtype is provided.
Set to i32 to match ruda’s ecosystem default (test suite, record settings, ruda-tensor-remote).
Prefer explicit dtypes via (&device, DType::I32).
Source§type Device = HostDevice
type Device = HostDevice
Source§type FloatTensorPrimitive = HostTensor
type FloatTensorPrimitive = HostTensor
Source§type IntTensorPrimitive = HostTensor
type IntTensorPrimitive = HostTensor
Source§type BoolTensorPrimitive = HostTensor
type BoolTensorPrimitive = HostTensor
Source§type QuantizedTensorPrimitive = HostQTensor
type QuantizedTensorPrimitive = HostQTensor
Source§impl BoolTensorOps<Host> for Host
impl BoolTensorOps<Host> for Host
Source§fn bool_from_data(data: TensorData, _device: &Device<Host>) -> BoolTensor<Host>
fn bool_from_data(data: TensorData, _device: &Device<Host>) -> BoolTensor<Host>
Source§async fn bool_into_data(
tensor: BoolTensor<Host>,
) -> Result<TensorData, ExecutionError>
async fn bool_into_data( tensor: BoolTensor<Host>, ) -> Result<TensorData, ExecutionError>
Source§fn bool_device(_tensor: &BoolTensor<Host>) -> Device<Host>
fn bool_device(_tensor: &BoolTensor<Host>) -> Device<Host>
Source§fn bool_to_device(
tensor: BoolTensor<Host>,
_device: &Device<Host>,
) -> BoolTensor<Host>
fn bool_to_device( tensor: BoolTensor<Host>, _device: &Device<Host>, ) -> BoolTensor<Host>
Source§fn bool_cat(tensors: Vec<BoolTensor<Host>>, dim: usize) -> BoolTensor<Host>
fn bool_cat(tensors: Vec<BoolTensor<Host>>, dim: usize) -> BoolTensor<Host>
Source§fn bool_reshape(tensor: BoolTensor<Host>, shape: Shape) -> BoolTensor<Host>
fn bool_reshape(tensor: BoolTensor<Host>, shape: Shape) -> BoolTensor<Host>
Source§fn bool_slice(tensor: BoolTensor<Host>, slices: &[Slice]) -> BoolTensor<Host>
fn bool_slice(tensor: BoolTensor<Host>, slices: &[Slice]) -> BoolTensor<Host>
Source§fn bool_empty(
shape: Shape,
_device: &Device<Host>,
dtype: BoolDType,
) -> BoolTensor<Host>
fn bool_empty( shape: Shape, _device: &Device<Host>, dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn bool_slice_assign(
tensor: BoolTensor<Host>,
slices: &[Slice],
value: BoolTensor<Host>,
) -> BoolTensor<Host>
fn bool_slice_assign( tensor: BoolTensor<Host>, slices: &[Slice], value: BoolTensor<Host>, ) -> BoolTensor<Host>
Source§fn bool_into_int(
tensor: BoolTensor<Host>,
out_dtype: IntDType,
) -> IntTensor<Host>
fn bool_into_int( tensor: BoolTensor<Host>, out_dtype: IntDType, ) -> IntTensor<Host>
Source§fn bool_into_float(
tensor: BoolTensor<Host>,
out_dtype: FloatDType,
) -> FloatTensor<Host>
fn bool_into_float( tensor: BoolTensor<Host>, out_dtype: FloatDType, ) -> FloatTensor<Host>
Source§fn bool_swap_dims(
tensor: BoolTensor<Host>,
dim1: usize,
dim2: usize,
) -> BoolTensor<Host>
fn bool_swap_dims( tensor: BoolTensor<Host>, dim1: usize, dim2: usize, ) -> BoolTensor<Host>
Source§fn bool_permute(tensor: BoolTensor<Host>, axes: &[usize]) -> BoolTensor<Host>
fn bool_permute(tensor: BoolTensor<Host>, axes: &[usize]) -> BoolTensor<Host>
Source§fn bool_flip(tensor: BoolTensor<Host>, axes: &[usize]) -> BoolTensor<Host>
fn bool_flip(tensor: BoolTensor<Host>, axes: &[usize]) -> BoolTensor<Host>
Source§fn bool_equal(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_equal(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
Source§fn bool_not(tensor: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_not(tensor: BoolTensor<Host>) -> BoolTensor<Host>
Source§fn bool_and(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_and(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
&&) operation on two boolean tensors. Read moreSource§fn bool_or(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_or(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
||) operation on two boolean tensors. Read moreSource§fn bool_xor(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_xor(lhs: BoolTensor<Host>, rhs: BoolTensor<Host>) -> BoolTensor<Host>
Source§fn bool_expand(tensor: BoolTensor<Host>, shape: Shape) -> BoolTensor<Host>
fn bool_expand(tensor: BoolTensor<Host>, shape: Shape) -> BoolTensor<Host>
tensor to the given shape.Source§fn bool_zeros(
shape: Shape,
device: &Device<Host>,
dtype: BoolDType,
) -> BoolTensor<Host>
fn bool_zeros( shape: Shape, device: &Device<Host>, dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn bool_ones(
shape: Shape,
_device: &Device<Host>,
dtype: BoolDType,
) -> BoolTensor<Host>
fn bool_ones( shape: Shape, _device: &Device<Host>, dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn bool_mask_where(
tensor: BoolTensor<Host>,
mask: BoolTensor<Host>,
value: BoolTensor<Host>,
) -> BoolTensor<Host>
fn bool_mask_where( tensor: BoolTensor<Host>, mask: BoolTensor<Host>, value: BoolTensor<Host>, ) -> BoolTensor<Host>
Source§fn bool_mask_fill(
tensor: BoolTensor<Host>,
mask: BoolTensor<Host>,
value: Scalar,
) -> BoolTensor<Host>
fn bool_mask_fill( tensor: BoolTensor<Host>, mask: BoolTensor<Host>, value: Scalar, ) -> BoolTensor<Host>
Source§fn bool_gather(
dim: usize,
tensor: BoolTensor<Host>,
indices: IntTensor<Host>,
) -> BoolTensor<Host>
fn bool_gather( dim: usize, tensor: BoolTensor<Host>, indices: IntTensor<Host>, ) -> BoolTensor<Host>
Source§fn bool_scatter_or(
dim: usize,
tensor: BoolTensor<Host>,
indices: IntTensor<Host>,
value: BoolTensor<Host>,
) -> BoolTensor<Host>
fn bool_scatter_or( dim: usize, tensor: BoolTensor<Host>, indices: IntTensor<Host>, value: BoolTensor<Host>, ) -> BoolTensor<Host>
Source§fn bool_equal_elem(lhs: BoolTensor<Host>, rhs: Scalar) -> BoolTensor<Host>
fn bool_equal_elem(lhs: BoolTensor<Host>, rhs: Scalar) -> BoolTensor<Host>
Source§fn bool_unfold(
tensor: BoolTensor<Host>,
dim: usize,
size: usize,
step: usize,
) -> BoolTensor<Host>
fn bool_unfold( tensor: BoolTensor<Host>, dim: usize, size: usize, step: usize, ) -> BoolTensor<Host>
Source§fn bool_not_equal(
lhs: BoolTensor<Host>,
rhs: BoolTensor<Host>,
) -> BoolTensor<Host>
fn bool_not_equal( lhs: BoolTensor<Host>, rhs: BoolTensor<Host>, ) -> BoolTensor<Host>
Source§fn bool_not_equal_elem(lhs: BoolTensor<Host>, rhs: Scalar) -> BoolTensor<Host>
fn bool_not_equal_elem(lhs: BoolTensor<Host>, rhs: Scalar) -> BoolTensor<Host>
Source§fn bool_any(tensor: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_any(tensor: BoolTensor<Host>) -> BoolTensor<Host>
tensor evaluates to True. Read moreSource§fn bool_any_dim(tensor: BoolTensor<Host>, dim: usize) -> BoolTensor<Host>
fn bool_any_dim(tensor: BoolTensor<Host>, dim: usize) -> BoolTensor<Host>
Source§fn bool_all(tensor: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_all(tensor: BoolTensor<Host>) -> BoolTensor<Host>
tensor evaluate to True. Read moreSource§fn bool_all_dim(tensor: BoolTensor<Host>, dim: usize) -> BoolTensor<Host>
fn bool_all_dim(tensor: BoolTensor<Host>, dim: usize) -> BoolTensor<Host>
Source§fn bool_select(
tensor: BoolTensor<Host>,
dim: usize,
indices: IntTensor<Host>,
) -> BoolTensor<Host>
fn bool_select( tensor: BoolTensor<Host>, dim: usize, indices: IntTensor<Host>, ) -> BoolTensor<Host>
Source§fn bool_select_or(
tensor: BoolTensor<Host>,
dim: usize,
indices: IntTensor<Host>,
value: BoolTensor<Host>,
) -> BoolTensor<Host>
fn bool_select_or( tensor: BoolTensor<Host>, dim: usize, indices: IntTensor<Host>, value: BoolTensor<Host>, ) -> BoolTensor<Host>
Source§fn bool_transpose(tensor: BoolTensor<Host>) -> BoolTensor<Host>
fn bool_transpose(tensor: BoolTensor<Host>) -> BoolTensor<Host>
Source§fn bool_repeat_dim(
tensor: BoolTensor<Host>,
dim: usize,
times: usize,
) -> BoolTensor<Host>
fn bool_repeat_dim( tensor: BoolTensor<Host>, dim: usize, times: usize, ) -> BoolTensor<Host>
Source§async fn bool_argwhere(
tensor: BoolTensor<Host>,
out_dtype: IntDType,
) -> IntTensor<Host>
async fn bool_argwhere( tensor: BoolTensor<Host>, out_dtype: IntDType, ) -> IntTensor<Host>
Source§fn bool_autodiff_context(
tensor: &<B as BackendTypes>::BoolTensorPrimitive,
) -> AutodiffContext
fn bool_autodiff_context( tensor: &<B as BackendTypes>::BoolTensorPrimitive, ) -> AutodiffContext
Source§fn bool_with_autodiff_context(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
context: AutodiffContext,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_with_autodiff_context( tensor: <B as BackendTypes>::BoolTensorPrimitive, context: AutodiffContext, ) -> <B as BackendTypes>::BoolTensorPrimitive
impl<E: Copy, I: Copy> Copy for Host<E, I>
Source§impl FloatTensorOps<Host> for Host
impl FloatTensorOps<Host> for Host
Source§fn float_from_data(
data: TensorData,
_device: &Device<Host>,
) -> FloatTensor<Host>
fn float_from_data( data: TensorData, _device: &Device<Host>, ) -> FloatTensor<Host>
Source§fn float_random(
shape: Shape,
distribution: Distribution,
_device: &Device<Host>,
dtype: FloatDType,
) -> FloatTensor<Host>
fn float_random( shape: Shape, distribution: Distribution, _device: &Device<Host>, dtype: FloatDType, ) -> FloatTensor<Host>
Source§async fn float_into_data(
tensor: FloatTensor<Host>,
) -> Result<TensorData, ExecutionError>
async fn float_into_data( tensor: FloatTensor<Host>, ) -> Result<TensorData, ExecutionError>
Source§fn float_device(_tensor: &FloatTensor<Host>) -> Device<Host>
fn float_device(_tensor: &FloatTensor<Host>) -> Device<Host>
Source§fn float_to_device(
tensor: FloatTensor<Host>,
_device: &Device<Host>,
) -> FloatTensor<Host>
fn float_to_device( tensor: FloatTensor<Host>, _device: &Device<Host>, ) -> FloatTensor<Host>
Source§fn float_detach(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_detach(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_into_int(
tensor: FloatTensor<Host>,
out_dtype: IntDType,
) -> IntTensor<Host>
fn float_into_int( tensor: FloatTensor<Host>, out_dtype: IntDType, ) -> IntTensor<Host>
Source§fn float_empty(
shape: Shape,
_device: &Device<Host>,
dtype: FloatDType,
) -> FloatTensor<Host>
fn float_empty( shape: Shape, _device: &Device<Host>, dtype: FloatDType, ) -> FloatTensor<Host>
Source§fn float_add(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_add( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_add_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
fn float_add_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
Source§fn float_sub(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_sub( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_sub_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
fn float_sub_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
Source§fn float_mul(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_mul( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_mul_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
fn float_mul_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
Source§fn float_div(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_div( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_div_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
fn float_div_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
Source§fn float_remainder(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_remainder( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_remainder_scalar(
lhs: FloatTensor<Host>,
rhs: Scalar,
) -> FloatTensor<Host>
fn float_remainder_scalar( lhs: FloatTensor<Host>, rhs: Scalar, ) -> FloatTensor<Host>
Source§fn float_matmul(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_matmul( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_cross(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
dim: usize,
) -> FloatTensor<Host>
fn float_cross( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, dim: usize, ) -> FloatTensor<Host>
Source§fn float_recip(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_recip(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_swap_dims(
tensor: FloatTensor<Host>,
dim1: usize,
dim2: usize,
) -> FloatTensor<Host>
fn float_swap_dims( tensor: FloatTensor<Host>, dim1: usize, dim2: usize, ) -> FloatTensor<Host>
Source§fn float_permute(tensor: FloatTensor<Host>, axes: &[usize]) -> FloatTensor<Host>
fn float_permute(tensor: FloatTensor<Host>, axes: &[usize]) -> FloatTensor<Host>
Source§fn float_flip(tensor: FloatTensor<Host>, axes: &[usize]) -> FloatTensor<Host>
fn float_flip(tensor: FloatTensor<Host>, axes: &[usize]) -> FloatTensor<Host>
Source§fn float_cat(tensors: Vec<FloatTensor<Host>>, dim: usize) -> FloatTensor<Host>
fn float_cat(tensors: Vec<FloatTensor<Host>>, dim: usize) -> FloatTensor<Host>
Source§fn float_reshape(tensor: FloatTensor<Host>, shape: Shape) -> FloatTensor<Host>
fn float_reshape(tensor: FloatTensor<Host>, shape: Shape) -> FloatTensor<Host>
Source§fn float_gather(
dim: usize,
tensor: FloatTensor<Host>,
indices: IntTensor<Host>,
) -> FloatTensor<Host>
fn float_gather( dim: usize, tensor: FloatTensor<Host>, indices: IntTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_scatter_add(
dim: usize,
tensor: FloatTensor<Host>,
indices: IntTensor<Host>,
value: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_scatter_add( dim: usize, tensor: FloatTensor<Host>, indices: IntTensor<Host>, value: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_scatter_nd(
data: FloatTensor<Host>,
indices: IntTensor<Host>,
values: FloatTensor<Host>,
reduction: IndexingUpdateOp,
) -> FloatTensor<Host>
fn float_scatter_nd( data: FloatTensor<Host>, indices: IntTensor<Host>, values: FloatTensor<Host>, reduction: IndexingUpdateOp, ) -> FloatTensor<Host>
Source§fn float_gather_nd(
data: FloatTensor<Host>,
indices: IntTensor<Host>,
) -> FloatTensor<Host>
fn float_gather_nd( data: FloatTensor<Host>, indices: IntTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_select(
tensor: FloatTensor<Host>,
dim: usize,
indices: IntTensor<Host>,
) -> FloatTensor<Host>
fn float_select( tensor: FloatTensor<Host>, dim: usize, indices: IntTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_select_add(
tensor: FloatTensor<Host>,
dim: usize,
indices: IntTensor<Host>,
value: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_select_add( tensor: FloatTensor<Host>, dim: usize, indices: IntTensor<Host>, value: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_slice(tensor: FloatTensor<Host>, slices: &[Slice]) -> FloatTensor<Host>
fn float_slice(tensor: FloatTensor<Host>, slices: &[Slice]) -> FloatTensor<Host>
Source§fn float_slice_assign(
tensor: FloatTensor<Host>,
slices: &[Slice],
value: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_slice_assign( tensor: FloatTensor<Host>, slices: &[Slice], value: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_mask_where(
tensor: FloatTensor<Host>,
mask: BoolTensor<Host>,
value: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_mask_where( tensor: FloatTensor<Host>, mask: BoolTensor<Host>, value: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_mask_fill(
tensor: FloatTensor<Host>,
mask: BoolTensor<Host>,
value: Scalar,
) -> FloatTensor<Host>
fn float_mask_fill( tensor: FloatTensor<Host>, mask: BoolTensor<Host>, value: Scalar, ) -> FloatTensor<Host>
Source§fn float_equal(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_equal( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_equal_elem(
lhs: FloatTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_equal_elem( lhs: FloatTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_greater(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_greater( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_greater_elem(
lhs: FloatTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_greater_elem( lhs: FloatTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_greater_equal(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_greater_equal( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_greater_equal_elem(
lhs: FloatTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_greater_equal_elem( lhs: FloatTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_lower(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_lower( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_lower_elem(
lhs: FloatTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_lower_elem( lhs: FloatTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_lower_equal(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_lower_equal( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_lower_equal_elem(
lhs: FloatTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_lower_equal_elem( lhs: FloatTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_not_equal(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_not_equal( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_not_equal_elem(
lhs: FloatTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_not_equal_elem( lhs: FloatTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_neg(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_neg(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_clamp(
tensor: FloatTensor<Host>,
min: Scalar,
max: Scalar,
) -> FloatTensor<Host>
fn float_clamp( tensor: FloatTensor<Host>, min: Scalar, max: Scalar, ) -> FloatTensor<Host>
Source§fn float_clamp_min(tensor: FloatTensor<Host>, min: Scalar) -> FloatTensor<Host>
fn float_clamp_min(tensor: FloatTensor<Host>, min: Scalar) -> FloatTensor<Host>
Source§fn float_clamp_max(tensor: FloatTensor<Host>, max: Scalar) -> FloatTensor<Host>
fn float_clamp_max(tensor: FloatTensor<Host>, max: Scalar) -> FloatTensor<Host>
Source§fn float_sign(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_sign(tensor: FloatTensor<Host>) -> FloatTensor<Host>
tensor. Read moreSource§fn float_mean(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_mean(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_max(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_max(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_max_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_max_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_min(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_min(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_min_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_min_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_max_dim_with_indices(
tensor: FloatTensor<Host>,
dim: usize,
indices_dtype: IntDType,
) -> (FloatTensor<Host>, IntTensor<Host>)
fn float_max_dim_with_indices( tensor: FloatTensor<Host>, dim: usize, indices_dtype: IntDType, ) -> (FloatTensor<Host>, IntTensor<Host>)
Source§fn float_min_dim_with_indices(
tensor: FloatTensor<Host>,
dim: usize,
indices_dtype: IntDType,
) -> (FloatTensor<Host>, IntTensor<Host>)
fn float_min_dim_with_indices( tensor: FloatTensor<Host>, dim: usize, indices_dtype: IntDType, ) -> (FloatTensor<Host>, IntTensor<Host>)
Source§fn float_any(
tensor: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_any( tensor: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
tensor evaluates to True. Read moreSource§fn float_any_dim(
tensor: FloatTensor<Host>,
dim: usize,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_any_dim( tensor: FloatTensor<Host>, dim: usize, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_all(
tensor: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_all( tensor: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
tensor evaluate to True. Read moreSource§fn float_all_dim(
tensor: FloatTensor<Host>,
dim: usize,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_all_dim( tensor: FloatTensor<Host>, dim: usize, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_sum(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_sum(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_sum_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_sum_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_mean_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_mean_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_prod(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_prod(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_prod_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_prod_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_cumsum(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_cumsum(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_cumprod(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_cumprod(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_cummin(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_cummin(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_cummax(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_cummax(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_cast(tensor: FloatTensor<Host>, dtype: FloatDType) -> FloatTensor<Host>
fn float_cast(tensor: FloatTensor<Host>, dtype: FloatDType) -> FloatTensor<Host>
Source§fn float_exp(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_exp(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_log(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_log(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_log1p(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_log1p(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_powf(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_powf( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_powf_scalar_impl(
tensor: FloatTensor<Host>,
value: Scalar,
) -> FloatTensor<Host>
fn float_powf_scalar_impl( tensor: FloatTensor<Host>, value: Scalar, ) -> FloatTensor<Host>
value. Read moreSource§fn float_sqrt(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_sqrt(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_abs(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_abs(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_cos(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_cos(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_sin(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_sin(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_tan(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_tan(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_cosh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_cosh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_sinh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_sinh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_tanh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_tanh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_acos(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_acos(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_acosh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_acosh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_asin(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_asin(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_asinh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_asinh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_atan(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_atan(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_atanh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_atanh(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_atan2(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_atan2( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_hypot(
lhs: FloatTensor<Host>,
rhs: FloatTensor<Host>,
) -> FloatTensor<Host>
fn float_hypot( lhs: FloatTensor<Host>, rhs: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn float_round(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_round(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_floor(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_floor(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_ceil(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_ceil(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_trunc(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_trunc(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_erf(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_erf(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_argmax(
tensor: FloatTensor<Host>,
dim: usize,
out_dtype: IntDType,
) -> IntTensor<Host>
fn float_argmax( tensor: FloatTensor<Host>, dim: usize, out_dtype: IntDType, ) -> IntTensor<Host>
Source§fn float_argtopk(
tensor: FloatTensor<Host>,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> IntTensor<Host>
fn float_argtopk( tensor: FloatTensor<Host>, dim: usize, k: usize, out_dtype: IntDType, ) -> IntTensor<Host>
Source§fn float_argmin(
tensor: FloatTensor<Host>,
dim: usize,
out_dtype: IntDType,
) -> IntTensor<Host>
fn float_argmin( tensor: FloatTensor<Host>, dim: usize, out_dtype: IntDType, ) -> IntTensor<Host>
Source§fn float_expand(tensor: FloatTensor<Host>, shape: Shape) -> FloatTensor<Host>
fn float_expand(tensor: FloatTensor<Host>, shape: Shape) -> FloatTensor<Host>
tensor to the given shape.Source§fn float_unfold(
tensor: FloatTensor<Host>,
dim: usize,
size: usize,
step: usize,
) -> FloatTensor<Host>
fn float_unfold( tensor: FloatTensor<Host>, dim: usize, size: usize, step: usize, ) -> FloatTensor<Host>
Source§fn float_grid_sample_2d(
tensor: FloatTensor<Host>,
grid: FloatTensor<Host>,
options: GridSampleOptions,
) -> FloatTensor<Host>
fn float_grid_sample_2d( tensor: FloatTensor<Host>, grid: FloatTensor<Host>, options: GridSampleOptions, ) -> FloatTensor<Host>
Source§fn float_zeros(
shape: Shape,
_device: &Device<Host>,
dtype: FloatDType,
) -> FloatTensor<Host>
fn float_zeros( shape: Shape, _device: &Device<Host>, dtype: FloatDType, ) -> FloatTensor<Host>
Source§fn float_ones(
shape: Shape,
_device: &Device<Host>,
dtype: FloatDType,
) -> FloatTensor<Host>
fn float_ones( shape: Shape, _device: &Device<Host>, dtype: FloatDType, ) -> FloatTensor<Host>
Source§fn float_full(
shape: Shape,
fill_value: Scalar,
_device: &Device<Host>,
dtype: FloatDType,
) -> FloatTensor<Host>
fn float_full( shape: Shape, fill_value: Scalar, _device: &Device<Host>, dtype: FloatDType, ) -> FloatTensor<Host>
Source§fn float_transpose(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_transpose(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_repeat_dim(
tensor: FloatTensor<Host>,
dim: usize,
times: usize,
) -> FloatTensor<Host>
fn float_repeat_dim( tensor: FloatTensor<Host>, dim: usize, times: usize, ) -> FloatTensor<Host>
Source§fn float_sort(
tensor: FloatTensor<Host>,
dim: usize,
descending: bool,
) -> FloatTensor<Host>
fn float_sort( tensor: FloatTensor<Host>, dim: usize, descending: bool, ) -> FloatTensor<Host>
tensor by value in along a given dimension. Read moreSource§fn float_sort_with_indices(
tensor: FloatTensor<Host>,
dim: usize,
descending: bool,
indices_dtype: IntDType,
) -> (FloatTensor<Host>, IntTensor<Host>)
fn float_sort_with_indices( tensor: FloatTensor<Host>, dim: usize, descending: bool, indices_dtype: IntDType, ) -> (FloatTensor<Host>, IntTensor<Host>)
tensor by value in along a given dimension. Read moreSource§fn float_argsort(
tensor: FloatTensor<Host>,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> IntTensor<Host>
fn float_argsort( tensor: FloatTensor<Host>, dim: usize, descending: bool, out_dtype: IntDType, ) -> IntTensor<Host>
tensor by value along a given dimension. Read moreSource§fn float_powi(lhs: FloatTensor<Host>, rhs: IntTensor<Host>) -> FloatTensor<Host>
fn float_powi(lhs: FloatTensor<Host>, rhs: IntTensor<Host>) -> FloatTensor<Host>
Source§fn float_powi_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
fn float_powi_scalar(lhs: FloatTensor<Host>, rhs: Scalar) -> FloatTensor<Host>
Source§fn float_powi_scalar_impl(
lhs: FloatTensor<Host>,
rhs: Scalar,
) -> FloatTensor<Host>
fn float_powi_scalar_impl( lhs: FloatTensor<Host>, rhs: Scalar, ) -> FloatTensor<Host>
Source§fn float_powf_scalar(
tensor: FloatTensor<Host>,
value: Scalar,
) -> FloatTensor<Host>
fn float_powf_scalar( tensor: FloatTensor<Host>, value: Scalar, ) -> FloatTensor<Host>
value. Read moreSource§fn float_max_abs(tensor: FloatTensor<Host>) -> FloatTensor<Host>
fn float_max_abs(tensor: FloatTensor<Host>) -> FloatTensor<Host>
Source§fn float_max_abs_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
fn float_max_abs_dim(tensor: FloatTensor<Host>, dim: usize) -> FloatTensor<Host>
Source§fn float_is_nan(
tensor: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_is_nan( tensor: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_is_inf(
tensor: FloatTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn float_is_inf( tensor: FloatTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn float_scatter(
dim: usize,
tensor: <B as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
value: <B as BackendTypes>::FloatTensorPrimitive,
update: IndexingUpdateOp,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_scatter( dim: usize, tensor: <B as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, value: <B as BackendTypes>::FloatTensorPrimitive, update: IndexingUpdateOp, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_select_assign(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices: <B as BackendTypes>::IntTensorPrimitive,
value: <B as BackendTypes>::FloatTensorPrimitive,
update: IndexingUpdateOp,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_select_assign( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, indices: <B as BackendTypes>::IntTensorPrimitive, value: <B as BackendTypes>::FloatTensorPrimitive, update: IndexingUpdateOp, ) -> <B as BackendTypes>::FloatTensorPrimitive
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_is_tracked(tensor: &<B as BackendTypes>::FloatTensorPrimitive) -> bool
fn float_is_tracked(tensor: &<B as BackendTypes>::FloatTensorPrimitive) -> bool
Source§fn float_gradient_checkpointing_strategy(
_tensor: &<B as BackendTypes>::FloatTensorPrimitive,
) -> Option<GradientCheckpointingStrategy>
fn float_gradient_checkpointing_strategy( _tensor: &<B as BackendTypes>::FloatTensorPrimitive, ) -> Option<GradientCheckpointingStrategy>
None without autodiff.Source§fn float_autodiff_context(
tensor: &<B as BackendTypes>::FloatTensorPrimitive,
) -> AutodiffContext
fn float_autodiff_context( tensor: &<B as BackendTypes>::FloatTensorPrimitive, ) -> AutodiffContext
Source§fn float_with_autodiff_context(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
context: AutodiffContext,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_with_autodiff_context( tensor: <B as BackendTypes>::FloatTensorPrimitive, context: AutodiffContext, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_with_gradient_checkpointing_strategy(
_tensor: <B as BackendTypes>::FloatTensorPrimitive,
_strategy: GradientCheckpointingStrategy,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_with_gradient_checkpointing_strategy( _tensor: <B as BackendTypes>::FloatTensorPrimitive, _strategy: GradientCheckpointingStrategy, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn float_rsqrt(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_rsqrt( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
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§impl IntTensorOps<Host> for Host
impl IntTensorOps<Host> for Host
Source§fn int_gather(
dim: usize,
tensor: IntTensor<Host>,
indices: IntTensor<Host>,
) -> IntTensor<Host>
fn int_gather( dim: usize, tensor: IntTensor<Host>, indices: IntTensor<Host>, ) -> IntTensor<Host>
Gather ints along dim at the given indices.
The tensor dispatches on its own int dtype (I8/I16/I32/I64 signed or
U8/U16/U32/U64 unsigned). The indices tensor may be any of those
widths too - it’s normalised to isize by the shared read_indices
helper in ops::gather_scatter before the kernel runs, so callers are
not required to pre-convert to I64.
Source§fn int_scatter_add(
dim: usize,
tensor: IntTensor<Host>,
indices: IntTensor<Host>,
value: IntTensor<Host>,
) -> IntTensor<Host>
fn int_scatter_add( dim: usize, tensor: IntTensor<Host>, indices: IntTensor<Host>, value: IntTensor<Host>, ) -> IntTensor<Host>
Scatter-add int values at the given indices along dim.
tensor and value must share the same int dtype; indices may be
any supported int width. See int_gather for the
full index-width policy.
Source§fn int_select(
tensor: IntTensor<Host>,
dim: usize,
indices: IntTensor<Host>,
) -> IntTensor<Host>
fn int_select( tensor: IntTensor<Host>, dim: usize, indices: IntTensor<Host>, ) -> IntTensor<Host>
Select ints along dim by a 1D index tensor.
The indices tensor may be any supported int width. See
int_gather for the full index-width policy.
Source§fn int_select_add(
tensor: IntTensor<Host>,
dim: usize,
indices: IntTensor<Host>,
value: IntTensor<Host>,
) -> IntTensor<Host>
fn int_select_add( tensor: IntTensor<Host>, dim: usize, indices: IntTensor<Host>, value: IntTensor<Host>, ) -> IntTensor<Host>
Select-add int values at a 1D index tensor along dim.
tensor and value must share the same int dtype; indices may be
any supported int width. See int_gather for the
full index-width policy.
Source§fn int_from_data(data: TensorData, _device: &Device<Host>) -> IntTensor<Host>
fn int_from_data(data: TensorData, _device: &Device<Host>) -> IntTensor<Host>
Source§async fn int_into_data(
tensor: IntTensor<Host>,
) -> Result<TensorData, ExecutionError>
async fn int_into_data( tensor: IntTensor<Host>, ) -> Result<TensorData, ExecutionError>
Source§fn int_device(_tensor: &IntTensor<Host>) -> Device<Host>
fn int_device(_tensor: &IntTensor<Host>) -> Device<Host>
Source§fn int_to_device(
tensor: IntTensor<Host>,
_device: &Device<Host>,
) -> IntTensor<Host>
fn int_to_device( tensor: IntTensor<Host>, _device: &Device<Host>, ) -> IntTensor<Host>
Source§fn int_cat(tensors: Vec<IntTensor<Host>>, dim: usize) -> IntTensor<Host>
fn int_cat(tensors: Vec<IntTensor<Host>>, dim: usize) -> IntTensor<Host>
Source§fn int_reshape(tensor: IntTensor<Host>, shape: Shape) -> IntTensor<Host>
fn int_reshape(tensor: IntTensor<Host>, shape: Shape) -> IntTensor<Host>
Source§fn int_slice(tensor: IntTensor<Host>, slices: &[Slice]) -> IntTensor<Host>
fn int_slice(tensor: IntTensor<Host>, slices: &[Slice]) -> IntTensor<Host>
Source§fn int_empty(
shape: Shape,
_device: &Device<Host>,
dtype: IntDType,
) -> IntTensor<Host>
fn int_empty( shape: Shape, _device: &Device<Host>, dtype: IntDType, ) -> IntTensor<Host>
Source§fn int_mask_where(
tensor: IntTensor<Host>,
mask: BoolTensor<Host>,
value: IntTensor<Host>,
) -> IntTensor<Host>
fn int_mask_where( tensor: IntTensor<Host>, mask: BoolTensor<Host>, value: IntTensor<Host>, ) -> IntTensor<Host>
Source§fn int_mask_fill(
tensor: IntTensor<Host>,
mask: BoolTensor<Host>,
value: Scalar,
) -> IntTensor<Host>
fn int_mask_fill( tensor: IntTensor<Host>, mask: BoolTensor<Host>, value: Scalar, ) -> IntTensor<Host>
Source§fn int_slice_assign(
tensor: IntTensor<Host>,
slices: &[Slice],
value: IntTensor<Host>,
) -> IntTensor<Host>
fn int_slice_assign( tensor: IntTensor<Host>, slices: &[Slice], value: IntTensor<Host>, ) -> IntTensor<Host>
Source§fn int_scatter_nd(
data: IntTensor<Host>,
indices: IntTensor<Host>,
values: IntTensor<Host>,
reduction: IndexingUpdateOp,
) -> IntTensor<Host>
fn int_scatter_nd( data: IntTensor<Host>, indices: IntTensor<Host>, values: IntTensor<Host>, reduction: IndexingUpdateOp, ) -> IntTensor<Host>
Source§fn int_gather_nd(
data: IntTensor<Host>,
indices: IntTensor<Host>,
) -> IntTensor<Host>
fn int_gather_nd( data: IntTensor<Host>, indices: IntTensor<Host>, ) -> IntTensor<Host>
Source§fn int_equal(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_equal( lhs: IntTensor<Host>, rhs: IntTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_equal_elem(
lhs: IntTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_equal_elem( lhs: IntTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_greater(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_greater( lhs: IntTensor<Host>, rhs: IntTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_greater_elem(
lhs: IntTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_greater_elem( lhs: IntTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_greater_equal(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_greater_equal( lhs: IntTensor<Host>, rhs: IntTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_greater_equal_elem(
lhs: IntTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_greater_equal_elem( lhs: IntTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_lower(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_lower( lhs: IntTensor<Host>, rhs: IntTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_lower_elem(
lhs: IntTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_lower_elem( lhs: IntTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_lower_equal(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_lower_equal( lhs: IntTensor<Host>, rhs: IntTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_lower_equal_elem(
lhs: IntTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_lower_equal_elem( lhs: IntTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_add(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn int_add(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_add_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn int_add_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn int_sub(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn int_sub(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_sub_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn int_sub_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn int_mul(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn int_mul(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_mul_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn int_mul_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn int_div(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn int_div(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_div_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn int_div_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn int_remainder(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn int_remainder(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_remainder_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn int_remainder_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn int_into_float(
tensor: IntTensor<Host>,
out_dtype: FloatDType,
) -> FloatTensor<Host>
fn int_into_float( tensor: IntTensor<Host>, out_dtype: FloatDType, ) -> FloatTensor<Host>
Source§fn int_swap_dims(
tensor: IntTensor<Host>,
dim1: usize,
dim2: usize,
) -> IntTensor<Host>
fn int_swap_dims( tensor: IntTensor<Host>, dim1: usize, dim2: usize, ) -> IntTensor<Host>
Source§fn int_permute(tensor: IntTensor<Host>, axes: &[usize]) -> IntTensor<Host>
fn int_permute(tensor: IntTensor<Host>, axes: &[usize]) -> IntTensor<Host>
Source§fn int_flip(tensor: IntTensor<Host>, axes: &[usize]) -> IntTensor<Host>
fn int_flip(tensor: IntTensor<Host>, axes: &[usize]) -> IntTensor<Host>
Source§fn int_random(
shape: Shape,
distribution: Distribution,
_device: &Device<Host>,
dtype: IntDType,
) -> IntTensor<Host>
fn int_random( shape: Shape, distribution: Distribution, _device: &Device<Host>, dtype: IntDType, ) -> IntTensor<Host>
Source§fn int_expand(tensor: IntTensor<Host>, shape: Shape) -> IntTensor<Host>
fn int_expand(tensor: IntTensor<Host>, shape: Shape) -> IntTensor<Host>
tensor to the given shape.Source§fn int_matmul(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn int_matmul(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_sum(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_sum(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_sum_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_sum_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_prod(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_prod(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_prod_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_prod_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_mean_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_mean_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_cumsum(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_cumsum(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_cumprod(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_cumprod(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_cummin(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_cummin(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_cummax(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_cummax(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_argmax(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_argmax(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_argtopk(tensor: IntTensor<Host>, dim: usize, k: usize) -> IntTensor<Host>
fn int_argtopk(tensor: IntTensor<Host>, dim: usize, k: usize) -> IntTensor<Host>
Source§fn int_argmin(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_argmin(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_abs(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_abs(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn bitwise_and(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn bitwise_and(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn bitwise_and_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn bitwise_and_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn bitwise_or(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn bitwise_or(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn bitwise_or_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn bitwise_or_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn bitwise_xor(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn bitwise_xor(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn bitwise_xor_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn bitwise_xor_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn bitwise_not(tensor: IntTensor<Host>) -> IntTensor<Host>
fn bitwise_not(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn bitwise_left_shift(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
) -> IntTensor<Host>
fn bitwise_left_shift( lhs: IntTensor<Host>, rhs: IntTensor<Host>, ) -> IntTensor<Host>
Source§fn bitwise_left_shift_scalar(
lhs: IntTensor<Host>,
rhs: Scalar,
) -> IntTensor<Host>
fn bitwise_left_shift_scalar( lhs: IntTensor<Host>, rhs: Scalar, ) -> IntTensor<Host>
Source§fn bitwise_right_shift(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
) -> IntTensor<Host>
fn bitwise_right_shift( lhs: IntTensor<Host>, rhs: IntTensor<Host>, ) -> IntTensor<Host>
Source§fn bitwise_right_shift_scalar(
lhs: IntTensor<Host>,
rhs: Scalar,
) -> IntTensor<Host>
fn bitwise_right_shift_scalar( lhs: IntTensor<Host>, rhs: Scalar, ) -> IntTensor<Host>
Source§fn int_cast(tensor: IntTensor<Host>, dtype: IntDType) -> IntTensor<Host>
fn int_cast(tensor: IntTensor<Host>, dtype: IntDType) -> IntTensor<Host>
Source§fn int_unfold(
tensor: IntTensor<Host>,
dim: usize,
size: usize,
step: usize,
) -> IntTensor<Host>
fn int_unfold( tensor: IntTensor<Host>, dim: usize, size: usize, step: usize, ) -> IntTensor<Host>
Source§fn int_clamp(
tensor: IntTensor<Host>,
min: Scalar,
max: Scalar,
) -> IntTensor<Host>
fn int_clamp( tensor: IntTensor<Host>, min: Scalar, max: Scalar, ) -> IntTensor<Host>
Source§fn int_clamp_min(tensor: IntTensor<Host>, min: Scalar) -> IntTensor<Host>
fn int_clamp_min(tensor: IntTensor<Host>, min: Scalar) -> IntTensor<Host>
Source§fn int_clamp_max(tensor: IntTensor<Host>, max: Scalar) -> IntTensor<Host>
fn int_clamp_max(tensor: IntTensor<Host>, max: Scalar) -> IntTensor<Host>
Source§fn int_sign(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_sign(tensor: IntTensor<Host>) -> IntTensor<Host>
tensor. Read moreSource§fn int_mean(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_mean(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_max(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_max(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_max_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_max_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_min(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_min(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_min_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_min_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_max_dim_with_indices(
tensor: IntTensor<Host>,
dim: usize,
) -> (IntTensor<Host>, IntTensor<Host>)
fn int_max_dim_with_indices( tensor: IntTensor<Host>, dim: usize, ) -> (IntTensor<Host>, IntTensor<Host>)
Source§fn int_min_dim_with_indices(
tensor: IntTensor<Host>,
dim: usize,
) -> (IntTensor<Host>, IntTensor<Host>)
fn int_min_dim_with_indices( tensor: IntTensor<Host>, dim: usize, ) -> (IntTensor<Host>, IntTensor<Host>)
Source§fn int_any(tensor: IntTensor<Host>, out_dtype: BoolDType) -> BoolTensor<Host>
fn int_any(tensor: IntTensor<Host>, out_dtype: BoolDType) -> BoolTensor<Host>
tensor evaluates to True. Read moreSource§fn int_any_dim(
tensor: IntTensor<Host>,
dim: usize,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_any_dim( tensor: IntTensor<Host>, dim: usize, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_all(tensor: IntTensor<Host>, out_dtype: BoolDType) -> BoolTensor<Host>
fn int_all(tensor: IntTensor<Host>, out_dtype: BoolDType) -> BoolTensor<Host>
tensor evaluate to True. Read moreSource§fn int_all_dim(
tensor: IntTensor<Host>,
dim: usize,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_all_dim( tensor: IntTensor<Host>, dim: usize, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_powi(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
fn int_powi(lhs: IntTensor<Host>, rhs: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_zeros(
shape: Shape,
_device: &Device<Host>,
dtype: IntDType,
) -> IntTensor<Host>
fn int_zeros( shape: Shape, _device: &Device<Host>, dtype: IntDType, ) -> IntTensor<Host>
Source§fn int_ones(
shape: Shape,
_device: &Device<Host>,
dtype: IntDType,
) -> IntTensor<Host>
fn int_ones( shape: Shape, _device: &Device<Host>, dtype: IntDType, ) -> IntTensor<Host>
Source§fn int_full(
shape: Shape,
fill_value: Scalar,
_device: &Device<Host>,
dtype: IntDType,
) -> IntTensor<Host>
fn int_full( shape: Shape, fill_value: Scalar, _device: &Device<Host>, dtype: IntDType, ) -> IntTensor<Host>
Source§fn int_transpose(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_transpose(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_repeat_dim(
tensor: IntTensor<Host>,
dim: usize,
times: usize,
) -> IntTensor<Host>
fn int_repeat_dim( tensor: IntTensor<Host>, dim: usize, times: usize, ) -> IntTensor<Host>
Source§fn int_not_equal(
lhs: IntTensor<Host>,
rhs: IntTensor<Host>,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_not_equal( lhs: IntTensor<Host>, rhs: IntTensor<Host>, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_not_equal_elem(
lhs: IntTensor<Host>,
rhs: Scalar,
out_dtype: BoolDType,
) -> BoolTensor<Host>
fn int_not_equal_elem( lhs: IntTensor<Host>, rhs: Scalar, out_dtype: BoolDType, ) -> BoolTensor<Host>
Source§fn int_sort(
tensor: IntTensor<Host>,
dim: usize,
descending: bool,
) -> IntTensor<Host>
fn int_sort( tensor: IntTensor<Host>, dim: usize, descending: bool, ) -> IntTensor<Host>
tensor by value along a given dimension. Read moreSource§fn int_sort_with_indices(
tensor: IntTensor<Host>,
dim: usize,
descending: bool,
) -> (IntTensor<Host>, IntTensor<Host>)
fn int_sort_with_indices( tensor: IntTensor<Host>, dim: usize, descending: bool, ) -> (IntTensor<Host>, IntTensor<Host>)
tensor by value along a given dimension. Read moreSource§fn int_argsort(
tensor: IntTensor<Host>,
dim: usize,
descending: bool,
) -> IntTensor<Host>
fn int_argsort( tensor: IntTensor<Host>, dim: usize, descending: bool, ) -> IntTensor<Host>
tensor by value
along a given dimension. Read moreSource§fn int_powi_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn int_powi_scalar(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn int_powi_scalar_impl(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
fn int_powi_scalar_impl(lhs: IntTensor<Host>, rhs: Scalar) -> IntTensor<Host>
Source§fn int_max_abs(tensor: IntTensor<Host>) -> IntTensor<Host>
fn int_max_abs(tensor: IntTensor<Host>) -> IntTensor<Host>
Source§fn int_max_abs_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
fn int_max_abs_dim(tensor: IntTensor<Host>, dim: usize) -> IntTensor<Host>
Source§fn int_arange(
range: Range<i64>,
_device: &Device<Host>,
dtype: IntDType,
) -> IntTensor<Host>
fn int_arange( range: Range<i64>, _device: &Device<Host>, dtype: IntDType, ) -> IntTensor<Host>
Source§fn int_arange_step(
range: Range<i64>,
step: usize,
_device: &Device<Host>,
dtype: IntDType,
) -> IntTensor<Host>
fn int_arange_step( range: Range<i64>, step: usize, _device: &Device<Host>, dtype: IntDType, ) -> IntTensor<Host>
Source§fn int_autodiff_context(
tensor: &<B as BackendTypes>::IntTensorPrimitive,
) -> AutodiffContext
fn int_autodiff_context( tensor: &<B as BackendTypes>::IntTensorPrimitive, ) -> AutodiffContext
Source§fn int_with_autodiff_context(
tensor: <B as BackendTypes>::IntTensorPrimitive,
context: AutodiffContext,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_with_autodiff_context( tensor: <B as BackendTypes>::IntTensorPrimitive, context: AutodiffContext, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_scatter(
dim: usize,
tensor: <B as BackendTypes>::IntTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
value: <B as BackendTypes>::IntTensorPrimitive,
update: IndexingUpdateOp,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_scatter( dim: usize, tensor: <B as BackendTypes>::IntTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, value: <B as BackendTypes>::IntTensorPrimitive, update: IndexingUpdateOp, ) -> <B as BackendTypes>::IntTensorPrimitive
Source§fn int_select_assign(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
indices: <B as BackendTypes>::IntTensorPrimitive,
value: <B as BackendTypes>::IntTensorPrimitive,
update: IndexingUpdateOp,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_select_assign( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, indices: <B as BackendTypes>::IntTensorPrimitive, value: <B as BackendTypes>::IntTensorPrimitive, update: IndexingUpdateOp, ) -> <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§impl ModuleOps<Host> for Host
impl ModuleOps<Host> for Host
Source§fn conv1d(
x: FloatTensor<Host>,
weight: FloatTensor<Host>,
bias: Option<FloatTensor<Host>>,
options: ConvOptions<1>,
) -> FloatTensor<Host>
fn conv1d( x: FloatTensor<Host>, weight: FloatTensor<Host>, bias: Option<FloatTensor<Host>>, options: ConvOptions<1>, ) -> FloatTensor<Host>
Source§fn conv2d(
x: FloatTensor<Host>,
weight: FloatTensor<Host>,
bias: Option<FloatTensor<Host>>,
options: ConvOptions<2>,
) -> FloatTensor<Host>
fn conv2d( x: FloatTensor<Host>, weight: FloatTensor<Host>, bias: Option<FloatTensor<Host>>, options: ConvOptions<2>, ) -> FloatTensor<Host>
Source§fn deform_conv2d(
x: FloatTensor<Host>,
offset: FloatTensor<Host>,
weight: FloatTensor<Host>,
mask: Option<FloatTensor<Host>>,
bias: Option<FloatTensor<Host>>,
options: DeformConvOptions<2>,
) -> FloatTensor<Host>
fn deform_conv2d( x: FloatTensor<Host>, offset: FloatTensor<Host>, weight: FloatTensor<Host>, mask: Option<FloatTensor<Host>>, bias: Option<FloatTensor<Host>>, options: DeformConvOptions<2>, ) -> FloatTensor<Host>
Source§fn deform_conv2d_backward(
x: FloatTensor<Host>,
offset: FloatTensor<Host>,
weight: FloatTensor<Host>,
mask: Option<FloatTensor<Host>>,
bias: Option<FloatTensor<Host>>,
output_grad: FloatTensor<Host>,
options: DeformConvOptions<2>,
) -> DeformConv2dBackward<Host>
fn deform_conv2d_backward( x: FloatTensor<Host>, offset: FloatTensor<Host>, weight: FloatTensor<Host>, mask: Option<FloatTensor<Host>>, bias: Option<FloatTensor<Host>>, output_grad: FloatTensor<Host>, options: DeformConvOptions<2>, ) -> DeformConv2dBackward<Host>
Source§fn conv3d(
x: FloatTensor<Host>,
weight: FloatTensor<Host>,
bias: Option<FloatTensor<Host>>,
options: ConvOptions<3>,
) -> FloatTensor<Host>
fn conv3d( x: FloatTensor<Host>, weight: FloatTensor<Host>, bias: Option<FloatTensor<Host>>, options: ConvOptions<3>, ) -> FloatTensor<Host>
Source§fn conv_transpose1d(
x: FloatTensor<Host>,
weight: FloatTensor<Host>,
bias: Option<FloatTensor<Host>>,
options: ConvTransposeOptions<1>,
) -> FloatTensor<Host>
fn conv_transpose1d( x: FloatTensor<Host>, weight: FloatTensor<Host>, bias: Option<FloatTensor<Host>>, options: ConvTransposeOptions<1>, ) -> FloatTensor<Host>
Source§fn conv_transpose2d(
x: FloatTensor<Host>,
weight: FloatTensor<Host>,
bias: Option<FloatTensor<Host>>,
options: ConvTransposeOptions<2>,
) -> FloatTensor<Host>
fn conv_transpose2d( x: FloatTensor<Host>, weight: FloatTensor<Host>, bias: Option<FloatTensor<Host>>, options: ConvTransposeOptions<2>, ) -> FloatTensor<Host>
Source§fn conv_transpose3d(
x: FloatTensor<Host>,
weight: FloatTensor<Host>,
bias: Option<FloatTensor<Host>>,
options: ConvTransposeOptions<3>,
) -> FloatTensor<Host>
fn conv_transpose3d( x: FloatTensor<Host>, weight: FloatTensor<Host>, bias: Option<FloatTensor<Host>>, options: ConvTransposeOptions<3>, ) -> FloatTensor<Host>
Source§fn avg_pool2d(
x: FloatTensor<Host>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
count_include_pad: bool,
ceil_mode: bool,
) -> FloatTensor<Host>
fn avg_pool2d( x: FloatTensor<Host>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, ceil_mode: bool, ) -> FloatTensor<Host>
Source§fn avg_pool2d_backward(
x: FloatTensor<Host>,
grad: FloatTensor<Host>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
count_include_pad: bool,
_divisor_override: bool,
) -> FloatTensor<Host>
fn avg_pool2d_backward( x: FloatTensor<Host>, grad: FloatTensor<Host>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, _divisor_override: bool, ) -> FloatTensor<Host>
Source§fn adaptive_avg_pool2d(
x: FloatTensor<Host>,
output_size: [usize; 2],
) -> FloatTensor<Host>
fn adaptive_avg_pool2d( x: FloatTensor<Host>, output_size: [usize; 2], ) -> FloatTensor<Host>
Source§fn adaptive_avg_pool2d_backward(
x: FloatTensor<Host>,
grad: FloatTensor<Host>,
) -> FloatTensor<Host>
fn adaptive_avg_pool2d_backward( x: FloatTensor<Host>, grad: FloatTensor<Host>, ) -> FloatTensor<Host>
Source§fn max_pool2d(
x: FloatTensor<Host>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
) -> FloatTensor<Host>
fn max_pool2d( x: FloatTensor<Host>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, ) -> FloatTensor<Host>
Source§fn max_pool2d_with_indices(
x: FloatTensor<Host>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
) -> MaxPool2dWithIndices<Host>
fn max_pool2d_with_indices( x: FloatTensor<Host>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, ) -> MaxPool2dWithIndices<Host>
Source§fn max_pool2d_with_indices_backward(
x: FloatTensor<Host>,
_kernel_size: [usize; 2],
_stride: [usize; 2],
_padding: [usize; 2],
_dilation: [usize; 2],
_ceil_mode: bool,
output_grad: FloatTensor<Host>,
indices: IntTensor<Host>,
) -> MaxPool2dBackward<Host>
fn max_pool2d_with_indices_backward( x: FloatTensor<Host>, _kernel_size: [usize; 2], _stride: [usize; 2], _padding: [usize; 2], _dilation: [usize; 2], _ceil_mode: bool, output_grad: FloatTensor<Host>, indices: IntTensor<Host>, ) -> MaxPool2dBackward<Host>
Source§fn interpolate(
x: FloatTensor<Host>,
output_size: [usize; 2],
options: InterpolateOptions,
) -> FloatTensor<Host>
fn interpolate( x: FloatTensor<Host>, output_size: [usize; 2], options: InterpolateOptions, ) -> FloatTensor<Host>
Source§fn interpolate_backward(
x: FloatTensor<Host>,
grad: FloatTensor<Host>,
output_size: [usize; 2],
options: InterpolateOptions,
) -> FloatTensor<Host>
fn interpolate_backward( x: FloatTensor<Host>, grad: FloatTensor<Host>, output_size: [usize; 2], options: InterpolateOptions, ) -> FloatTensor<Host>
Source§fn attention(
query: FloatTensor<Host>,
key: FloatTensor<Host>,
value: FloatTensor<Host>,
mask: Option<BoolTensor<Host>>,
attn_bias: Option<FloatTensor<Host>>,
options: AttentionModuleOptions,
) -> FloatTensor<Host>
fn attention( query: FloatTensor<Host>, key: FloatTensor<Host>, value: FloatTensor<Host>, mask: Option<BoolTensor<Host>>, attn_bias: Option<FloatTensor<Host>>, options: AttentionModuleOptions, ) -> FloatTensor<Host>
Source§fn rfft(
signal: FloatTensor<Host>,
dim: usize,
n: Option<usize>,
) -> (FloatTensor<Host>, FloatTensor<Host>)
fn rfft( signal: FloatTensor<Host>, dim: usize, n: Option<usize>, ) -> (FloatTensor<Host>, FloatTensor<Host>)
Source§fn irfft(
spectrum_re: FloatTensor<Host>,
spectrum_im: FloatTensor<Host>,
dim: usize,
n: Option<usize>,
) -> FloatTensor<Host>
fn irfft( spectrum_re: FloatTensor<Host>, spectrum_im: FloatTensor<Host>, dim: usize, n: Option<usize>, ) -> FloatTensor<Host>
Source§fn embedding(
weights: FloatTensor<Host>,
indices: IntTensor<Host>,
) -> FloatTensor<Host>
fn embedding( weights: FloatTensor<Host>, indices: IntTensor<Host>, ) -> FloatTensor<Host>
Source§fn layer_norm(
tensor: FloatTensor<Host>,
gamma: FloatTensor<Host>,
beta: Option<FloatTensor<Host>>,
epsilon: f64,
) -> FloatTensor<Host>
fn layer_norm( tensor: FloatTensor<Host>, gamma: FloatTensor<Host>, beta: Option<FloatTensor<Host>>, epsilon: f64, ) -> FloatTensor<Host>
Source§fn embedding_backward(
weights: FloatTensor<Host>,
output_grad: FloatTensor<Host>,
indices: IntTensor<Host>,
) -> FloatTensor<Host>
fn embedding_backward( weights: FloatTensor<Host>, output_grad: FloatTensor<Host>, indices: IntTensor<Host>, ) -> FloatTensor<Host>
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
[batch, channels, ...] using supplied [channels] statistics.Source§fn batch_norm_train(
x: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
beta: <B as BackendTypes>::FloatTensorPrimitive,
epsilon: f64,
) -> BatchNormTrain<B>
fn batch_norm_train( x: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, beta: <B as BackendTypes>::FloatTensorPrimitive, epsilon: f64, ) -> BatchNormTrain<B>
Source§fn batch_norm_train_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
mean: <B as BackendTypes>::FloatTensorPrimitive,
variance: <B as BackendTypes>::FloatTensorPrimitive,
epsilon: f64,
output_grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> BatchNormTrainBackward<B>
fn batch_norm_train_backward( x: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, mean: <B as BackendTypes>::FloatTensorPrimitive, variance: <B as BackendTypes>::FloatTensorPrimitive, epsilon: f64, output_grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> BatchNormTrainBackward<B>
Source§fn exponential_relu_native(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
alpha: f64,
continuous: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn exponential_relu_native( tensor: <B as BackendTypes>::FloatTensorPrimitive, alpha: f64, continuous: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn exponential_relu_native_backward(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
alpha: f64,
continuous: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn exponential_relu_native_backward( tensor: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, alpha: f64, continuous: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn leaky_relu_native(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
negative_slope: f64,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn leaky_relu_native( tensor: <B as BackendTypes>::FloatTensorPrimitive, negative_slope: f64, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn leaky_relu_native_backward(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
negative_slope: f64,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn leaky_relu_native_backward( tensor: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, negative_slope: f64, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn prelu_native(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
alpha: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn prelu_native( tensor: <B as BackendTypes>::FloatTensorPrimitive, alpha: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn prelu_native_backward_select(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
alpha: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
mask: [bool; 2],
) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 2]
fn prelu_native_backward_select( tensor: <B as BackendTypes>::FloatTensorPrimitive, alpha: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, mask: [bool; 2], ) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 2]
Source§fn group_norm(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: Option<<B as BackendTypes>::FloatTensorPrimitive>,
beta: Option<<B as BackendTypes>::FloatTensorPrimitive>,
groups: usize,
epsilon: f64,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn group_norm( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: Option<<B as BackendTypes>::FloatTensorPrimitive>, beta: Option<<B as BackendTypes>::FloatTensorPrimitive>, groups: usize, epsilon: f64, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn group_norm_with_stats(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: Option<<B as BackendTypes>::FloatTensorPrimitive>,
beta: Option<<B as BackendTypes>::FloatTensorPrimitive>,
groups: usize,
epsilon: f64,
) -> LayerNormOutput<B>
fn group_norm_with_stats( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: Option<<B as BackendTypes>::FloatTensorPrimitive>, beta: Option<<B as BackendTypes>::FloatTensorPrimitive>, groups: usize, epsilon: f64, ) -> LayerNormOutput<B>
[batch, groups] mean/reciprocal deviation.Source§fn group_norm_backward_select(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: Option<<B as BackendTypes>::FloatTensorPrimitive>,
grad: <B as BackendTypes>::FloatTensorPrimitive,
mean: <B as BackendTypes>::FloatTensorPrimitive,
rstd: <B as BackendTypes>::FloatTensorPrimitive,
groups: usize,
mask: [bool; 3],
) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 3]
fn group_norm_backward_select( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: Option<<B as BackendTypes>::FloatTensorPrimitive>, grad: <B as BackendTypes>::FloatTensorPrimitive, mean: <B as BackendTypes>::FloatTensorPrimitive, rstd: <B as BackendTypes>::FloatTensorPrimitive, groups: usize, mask: [bool; 3], ) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 3]
Source§fn gelu_native(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
approximate: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn gelu_native( tensor: <B as BackendTypes>::FloatTensorPrimitive, approximate: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn gelu_native_backward(
input: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
approximate: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn gelu_native_backward( input: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, approximate: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn silu_native(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn silu_native( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn silu_native_backward(
input: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn silu_native_backward( input: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn softmax_native(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
logarithmic: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn softmax_native( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, logarithmic: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn softmax_with_stats(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
logarithmic: bool,
) -> SoftmaxOutput<B>
fn softmax_with_stats( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, logarithmic: bool, ) -> SoftmaxOutput<B>
Source§fn softmax_native_backward(
working: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
logarithmic: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn softmax_native_backward( working: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, logarithmic: bool, ) -> <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_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_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
[batch, channels * kernel_area, blocks] into NCHW, summing overlaps.
The grouped one-hot transposed convolution is the adjoint of Self::unfold4d.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 avg_pool3d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 3],
stride: [usize; 3],
padding: [usize; 3],
count_include_pad: bool,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn avg_pool3d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 3], stride: [usize; 3], padding: [usize; 3], count_include_pad: bool, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
[batch, channels, depth, height, width].Source§fn avg_pool3d_native_output_size(
_input: [usize; 3],
_kernel: [usize; 3],
_stride: [usize; 3],
_padding: [usize; 3],
_ceil: bool,
) -> Option<[usize; 3]>
fn avg_pool3d_native_output_size( _input: [usize; 3], _kernel: [usize; 3], _stride: [usize; 3], _padding: [usize; 3], _ceil: bool, ) -> Option<[usize; 3]>
None to retain the backend’s composed operations.Source§fn avg_pool3d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
kernel_size: [usize; 3],
stride: [usize; 3],
padding: [usize; 3],
count_include_pad: bool,
ceil_mode: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn avg_pool3d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: [usize; 3], stride: [usize; 3], padding: [usize; 3], count_include_pad: bool, ceil_mode: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn adaptive_avg_pool3d(
x: <B as BackendTypes>::FloatTensorPrimitive,
output_size: [usize; 3],
) -> <B as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool3d( x: <B as BackendTypes>::FloatTensorPrimitive, output_size: [usize; 3], ) -> <B as BackendTypes>::FloatTensorPrimitive
[batch, channels, depth, height, width].Source§fn adaptive_avg_pool3d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn adaptive_avg_pool3d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool3d(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel: [usize; 3],
stride: [usize; 3],
padding: [usize; 3],
dilation: [usize; 3],
ceil: bool,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn max_pool3d( x: <B as BackendTypes>::FloatTensorPrimitive, kernel: [usize; 3], stride: [usize; 3], padding: [usize; 3], dilation: [usize; 3], ceil: bool, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn max_pool3d_with_indices(
x: <B as BackendTypes>::FloatTensorPrimitive,
kernel: [usize; 3],
stride: [usize; 3],
padding: [usize; 3],
dilation: [usize; 3],
ceil: bool,
) -> MaxPool3dWithIndices<B>
fn max_pool3d_with_indices( x: <B as BackendTypes>::FloatTensorPrimitive, kernel: [usize; 3], stride: [usize; 3], padding: [usize; 3], dilation: [usize; 3], ceil: bool, ) -> MaxPool3dWithIndices<B>
Source§fn max_pool3d_with_indices_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
_kernel: [usize; 3],
_stride: [usize; 3],
_padding: [usize; 3],
_dilation: [usize; 3],
_ceil: bool,
) -> MaxPool3dBackward<B>
fn max_pool3d_with_indices_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, _kernel: [usize; 3], _stride: [usize; 3], _padding: [usize; 3], _dilation: [usize; 3], _ceil: bool, ) -> MaxPool3dBackward<B>
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,
) -> MaxPool1dWithIndices<B>
fn max_pool1d_with_indices( x: <B as BackendTypes>::FloatTensorPrimitive, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, ) -> 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 interpolate1d(
x: <B as BackendTypes>::FloatTensorPrimitive,
size: usize,
options: InterpolateOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn interpolate1d( x: <B as BackendTypes>::FloatTensorPrimitive, size: usize, options: InterpolateOptions, ) -> <B as BackendTypes>::FloatTensorPrimitive
[batch, channels, width] lines with the original filter.Source§fn interpolate1d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
size: usize,
options: InterpolateOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn interpolate1d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, size: usize, options: InterpolateOptions, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn interpolate3d(
x: <B as BackendTypes>::FloatTensorPrimitive,
size: [usize; 3],
options: InterpolateOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn interpolate3d( x: <B as BackendTypes>::FloatTensorPrimitive, size: [usize; 3], options: InterpolateOptions, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn interpolate3d_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
size: [usize; 3],
options: InterpolateOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn interpolate3d_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, size: [usize; 3], options: InterpolateOptions, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn has_layer_norm_backward() -> bool
fn has_layer_norm_backward() -> bool
Source§fn has_rms_norm_backward() -> bool
fn has_rms_norm_backward() -> bool
Source§fn rms_norm(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
epsilon: f64,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn rms_norm( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, epsilon: f64, ) -> <B as BackendTypes>::FloatTensorPrimitive
Source§fn rms_norm_with_stats(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
epsilon: f64,
) -> RmsNormOutput<B>
fn rms_norm_with_stats( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, epsilon: f64, ) -> RmsNormOutput<B>
Source§fn rms_norm_backward(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
rstd: <B as BackendTypes>::FloatTensorPrimitive,
) -> RmsNormBackward<B>
fn rms_norm_backward( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, rstd: <B as BackendTypes>::FloatTensorPrimitive, ) -> RmsNormBackward<B>
Source§fn rms_norm_backward_select(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
rstd: <B as BackendTypes>::FloatTensorPrimitive,
mask: [bool; 2],
) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 2]
fn rms_norm_backward_select( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, rstd: <B as BackendTypes>::FloatTensorPrimitive, mask: [bool; 2], ) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 2]
Source§fn layer_norm_with_stats(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
beta: Option<<B as BackendTypes>::FloatTensorPrimitive>,
epsilon: f64,
) -> LayerNormOutput<B>
fn layer_norm_with_stats( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, beta: Option<<B as BackendTypes>::FloatTensorPrimitive>, epsilon: f64, ) -> LayerNormOutput<B>
Source§fn layer_norm_backward(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
mean: <B as BackendTypes>::FloatTensorPrimitive,
rstd: <B as BackendTypes>::FloatTensorPrimitive,
) -> LayerNormBackward<B>
fn layer_norm_backward( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, mean: <B as BackendTypes>::FloatTensorPrimitive, rstd: <B as BackendTypes>::FloatTensorPrimitive, ) -> LayerNormBackward<B>
Source§fn layer_norm_backward_select(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
mean: <B as BackendTypes>::FloatTensorPrimitive,
rstd: <B as BackendTypes>::FloatTensorPrimitive,
mask: [bool; 3],
) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 3]
fn layer_norm_backward_select( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, mean: <B as BackendTypes>::FloatTensorPrimitive, rstd: <B as BackendTypes>::FloatTensorPrimitive, mask: [bool; 3], ) -> [Option<<B as BackendTypes>::FloatTensorPrimitive>; 3]
Source§fn layer_norm_default(
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_default( 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<Host> for Host
impl QTensorOps<Host> for Host
Source§fn q_from_data(
data: TensorData,
_device: &Device<Host>,
) -> QuantizedTensor<Host>
fn q_from_data( data: TensorData, _device: &Device<Host>, ) -> QuantizedTensor<Host>
Source§fn quantize_dynamic(
tensor: FloatTensor<Host>,
scheme: &QuantScheme,
) -> QuantizedTensor<Host>
fn quantize_dynamic( tensor: FloatTensor<Host>, scheme: &QuantScheme, ) -> QuantizedTensor<Host>
Source§fn quantize(
tensor: FloatTensor<Host>,
scheme: &QuantScheme,
qparams: QuantizationParametersPrimitive<Host>,
) -> QuantizedTensor<Host>
fn quantize( tensor: FloatTensor<Host>, scheme: &QuantScheme, qparams: QuantizationParametersPrimitive<Host>, ) -> QuantizedTensor<Host>
Source§fn dequantize(
tensor: QuantizedTensor<Host>,
dtype: FloatDType,
) -> FloatTensor<Host>
fn dequantize( tensor: QuantizedTensor<Host>, dtype: FloatDType, ) -> FloatTensor<Host>
Source§fn q_device(_tensor: &QuantizedTensor<Host>) -> Device<Host>
fn q_device(_tensor: &QuantizedTensor<Host>) -> Device<Host>
Source§fn q_to_device(
tensor: QuantizedTensor<Host>,
_device: &Device<Host>,
) -> QuantizedTensor<Host>
fn q_to_device( tensor: QuantizedTensor<Host>, _device: &Device<Host>, ) -> QuantizedTensor<Host>
Source§fn q_reshape(
tensor: QuantizedTensor<Host>,
shape: Shape,
) -> QuantizedTensor<Host>
fn q_reshape( tensor: QuantizedTensor<Host>, shape: Shape, ) -> QuantizedTensor<Host>
Source§async fn q_into_data(
tensor: QuantizedTensor<Host>,
) -> Result<TensorData, ExecutionError>
async fn q_into_data( tensor: QuantizedTensor<Host>, ) -> Result<TensorData, ExecutionError>
Source§fn q_swap_dims(
tensor: QuantizedTensor<Host>,
dim1: usize,
dim2: usize,
) -> QuantizedTensor<Host>
fn q_swap_dims( tensor: QuantizedTensor<Host>, dim1: usize, dim2: usize, ) -> QuantizedTensor<Host>
Source§fn q_permute(
tensor: QuantizedTensor<Host>,
axes: &[usize],
) -> QuantizedTensor<Host>
fn q_permute( tensor: QuantizedTensor<Host>, axes: &[usize], ) -> QuantizedTensor<Host>
Source§fn q_flip(
tensor: QuantizedTensor<Host>,
axes: &[usize],
) -> QuantizedTensor<Host>
fn q_flip( tensor: QuantizedTensor<Host>, axes: &[usize], ) -> QuantizedTensor<Host>
Source§fn q_expand(
tensor: QuantizedTensor<Host>,
shape: Shape,
) -> QuantizedTensor<Host>
fn q_expand( tensor: QuantizedTensor<Host>, shape: Shape, ) -> QuantizedTensor<Host>
tensor to the given shape.Source§fn q_select(
tensor: QuantizedTensor<Host>,
dim: usize,
indices: IntTensor<Host>,
) -> QuantizedTensor<Host>
fn q_select( tensor: QuantizedTensor<Host>, dim: usize, indices: IntTensor<Host>, ) -> QuantizedTensor<Host>
Source§fn q_slice(
tensor: QuantizedTensor<Host>,
slices: &[Slice],
) -> QuantizedTensor<Host>
fn q_slice( tensor: QuantizedTensor<Host>, slices: &[Slice], ) -> QuantizedTensor<Host>
Source§fn q_gather(
dim: usize,
tensor: QuantizedTensor<Host>,
indices: IntTensor<Host>,
) -> QuantizedTensor<Host>
fn q_gather( dim: usize, tensor: QuantizedTensor<Host>, indices: IntTensor<Host>, ) -> QuantizedTensor<Host>
Source§fn quantize_dynamic_with_precision(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
scheme: &QuantScheme,
calibration_dtype: FloatDType,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn quantize_dynamic_with_precision( tensor: <B as BackendTypes>::FloatTensorPrimitive, scheme: &QuantScheme, calibration_dtype: FloatDType, ) -> <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_is_tracked(tensor: &<B as BackendTypes>::QuantizedTensorPrimitive) -> bool
fn q_is_tracked(tensor: &<B as BackendTypes>::QuantizedTensorPrimitive) -> bool
Source§fn q_gradient_checkpointing_strategy(
_tensor: &<B as BackendTypes>::QuantizedTensorPrimitive,
) -> Option<GradientCheckpointingStrategy>
fn q_gradient_checkpointing_strategy( _tensor: &<B as BackendTypes>::QuantizedTensorPrimitive, ) -> Option<GradientCheckpointingStrategy>
Source§fn q_autodiff_context(
tensor: &<B as BackendTypes>::QuantizedTensorPrimitive,
) -> AutodiffContext
fn q_autodiff_context( tensor: &<B as BackendTypes>::QuantizedTensorPrimitive, ) -> AutodiffContext
Source§fn q_with_autodiff_context(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
context: AutodiffContext,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_with_autodiff_context( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, context: AutodiffContext, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
Source§fn q_with_gradient_checkpointing_strategy(
_tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
_strategy: GradientCheckpointingStrategy,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_with_gradient_checkpointing_strategy( _tensor: <B as BackendTypes>::QuantizedTensorPrimitive, _strategy: GradientCheckpointingStrategy, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
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_matmul(
lhs: TensorPrimitive<B>,
rhs: TensorPrimitive<B>,
) -> TensorPrimitive<B>
fn q_matmul( lhs: TensorPrimitive<B>, rhs: TensorPrimitive<B>, ) -> TensorPrimitive<B>
Source§fn q_matmul_default(
lhs: TensorPrimitive<B>,
rhs: TensorPrimitive<B>,
) -> TensorPrimitive<B>
fn q_matmul_default( lhs: TensorPrimitive<B>, rhs: TensorPrimitive<B>, ) -> 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_argmax(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn q_argmax( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
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_argmin(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn q_argmin( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <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<Host> for Host
impl TransactionOps<Host> for Host
Source§fn tr_execute(
transaction: TransactionPrimitive<B>,
) -> impl Future<Output = Result<TransactionData, ExecutionError>> + Send
fn tr_execute( transaction: TransactionPrimitive<B>, ) -> impl Future<Output = Result<TransactionData, ExecutionError>> + Send
Auto Trait Implementations§
impl<E, I> Freeze for Host<E, I>
impl<E, I> RefUnwindSafe for Host<E, I>
impl<E, I> Send for Host<E, I>
impl<E, I> Sync for Host<E, I>
impl<E, I> Unpin for Host<E, I>
impl<E, I> UnsafeUnpin for Host<E, I>
impl<E, I> UnwindSafe for Host<E, I>
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