Struct Autodiff
pub struct Autodiff<B, C = NoCheckpointing> { /* private fields */ }Expand description
Enable auto-differentiation on a backend.
This works as a backend decorator, extending the functionality of any backend with backpropagation.
Implementations§
§impl<Src, C> Autodiff<Src, C>where
Src: Backend,
C: CheckpointStrategy,
impl<Src, C> Autodiff<Src, C>where
Src: Backend,
C: CheckpointStrategy,
pub fn to_backend<Dst, Adapter>(
tensor: <Autodiff<Src, C> as BackendTypes>::FloatTensorPrimitive,
device: &<Dst as BackendTypes>::Device,
) -> <Autodiff<Dst, C> as BackendTypes>::FloatTensorPrimitivewhere
Dst: Backend,
Adapter: DifferentiableTransfer<Src, Dst>,
pub fn to_backend<Dst, Adapter>(
tensor: <Autodiff<Src, C> as BackendTypes>::FloatTensorPrimitive,
device: &<Dst as BackendTypes>::Device,
) -> <Autodiff<Dst, C> as BackendTypes>::FloatTensorPrimitivewhere
Dst: Backend,
Adapter: DifferentiableTransfer<Src, Dst>,
Transfers a tensor to another backend through the supplied adapter.
Tracked inputs remain connected to the graph; their outputs are non-leaf tensors and cannot retain their own gradients. Detach the output before requiring its gradient to start a new leaf on the destination, severing the source connection. Untracked inputs remain untracked. The checkpointing strategy is preserved. Transfers aren’t replayed during gradient checkpointing.
Distributed backward requires every distributed parameter to use the same backend as the loss. Incompatible graphs panic before synchronization or gradient computation begins.
Trait Implementations§
§impl<B, C> ActivationOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> ActivationOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn gelu(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn gelu( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn relu(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn relu( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn sigmoid(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn sigmoid( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn log_sigmoid(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn log_sigmoid( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn leaky_relu(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
negative_slope: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn leaky_relu( tensor: <B as BackendTypes>::FloatTensorPrimitive, negative_slope: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn relu_backward(
output: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn relu_backward( output: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn prelu(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
alpha: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn prelu( tensor: <B as BackendTypes>::FloatTensorPrimitive, alpha: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn gelu_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn gelu_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn sigmoid_backward(
output: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn sigmoid_backward( output: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn hard_sigmoid(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
alpha: Scalar,
beta: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn hard_sigmoid( tensor: <B as BackendTypes>::FloatTensorPrimitive, alpha: Scalar, beta: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn softmax(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn softmax( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
§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
§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
§fn log_sigmoid_backward(
x: <B as BackendTypes>::FloatTensorPrimitive,
grad: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn log_sigmoid_backward( x: <B as BackendTypes>::FloatTensorPrimitive, grad: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§impl<B, C> AutodiffBackend for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> AutodiffBackend for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§type InnerBackend = B
type InnerBackend = B
§fn grad(
tensor: &AutodiffTensor<B>,
grads: &Gradients,
) -> Option<<B as BackendTypes>::FloatTensorPrimitive>
fn grad( tensor: &AutodiffTensor<B>, grads: &Gradients, ) -> Option<<B as BackendTypes>::FloatTensorPrimitive>
§fn grad_remove(
tensor: &AutodiffTensor<B>,
grads: &mut Gradients,
) -> Option<<B as BackendTypes>::FloatTensorPrimitive>
fn grad_remove( tensor: &AutodiffTensor<B>, grads: &mut Gradients, ) -> Option<<B as BackendTypes>::FloatTensorPrimitive>
§fn inner(tensor: AutodiffTensor<B>) -> <B as BackendTypes>::FloatTensorPrimitive
fn inner(tensor: AutodiffTensor<B>) -> <B as BackendTypes>::FloatTensorPrimitive
§fn from_inner(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> AutodiffTensor<B>
fn from_inner( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> AutodiffTensor<B>
§fn grad_replace(
tensor: &AutodiffTensor<B>,
grads: &mut <Autodiff<B, C> as AutodiffBackend>::Gradients,
grad: <B as BackendTypes>::FloatTensorPrimitive,
)
fn grad_replace( tensor: &AutodiffTensor<B>, grads: &mut <Autodiff<B, C> as AutodiffBackend>::Gradients, grad: <B as BackendTypes>::FloatTensorPrimitive, )
§fn int_inner(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::IntTensorPrimitive
fn int_inner( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::IntTensorPrimitive
§fn bool_inner(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
) -> <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::BoolTensorPrimitive
fn bool_inner( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, ) -> <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::BoolTensorPrimitive
§fn int_from_inner(
tensor: <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_from_inner( tensor: <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bool_from_inner(
tensor: <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::BoolTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_from_inner( tensor: <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::BoolTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn q_inner(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
) -> <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::QuantizedTensorPrimitive
fn q_inner( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, ) -> <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::QuantizedTensorPrimitive
§fn q_from_inner(
tensor: <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::QuantizedTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn q_from_inner( tensor: <<Autodiff<B, C> as AutodiffBackend>::InnerBackend as BackendTypes>::QuantizedTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn set_distributed_params(
tensor: AutodiffTensor<B>,
param_id: ParamId,
) -> AutodiffTensor<B>
fn set_distributed_params( tensor: AutodiffTensor<B>, param_id: ParamId, ) -> AutodiffTensor<B>
§fn distributed_params(tensor: &AutodiffTensor<B>) -> Option<DistributedParams>
fn distributed_params(tensor: &AutodiffTensor<B>) -> Option<DistributedParams>
§fn is_distributed(tensor: &AutodiffTensor<B>) -> bool
fn is_distributed(tensor: &AutodiffTensor<B>) -> bool
§impl<B, C> Backend for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> Backend for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn ad_enabled(_device: &<Autodiff<B, C> as BackendTypes>::Device) -> bool
fn ad_enabled(_device: &<Autodiff<B, C> as BackendTypes>::Device) -> bool
§fn seed(device: &<B as BackendTypes>::Device, seed: u64)
fn seed(device: &<B as BackendTypes>::Device, seed: u64)
§fn sync(device: &<B as BackendTypes>::Device) -> Result<(), ExecutionError>
fn sync(device: &<B as BackendTypes>::Device) -> Result<(), ExecutionError>
§fn profile<O>(
device: &<Autodiff<B, C> as BackendTypes>::Device,
options: ProfileOptions,
func: impl FnOnce() -> O + Send,
) -> Result<(O, ProfileDuration), ExecutionError>where
O: Send + 'static,
fn profile<O>(
device: &<Autodiff<B, C> as BackendTypes>::Device,
options: ProfileOptions,
func: impl FnOnce() -> O + Send,
) -> Result<(O, ProfileDuration), ExecutionError>where
O: Send + 'static,
func puts on the
calling stream, in device time. Read more§fn profile_start(
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> Result<Option<ProfileToken>, ExecutionError>
fn profile_start( device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> Result<Option<ProfileToken>, ExecutionError>
profile_end from the same stream. Read more§fn profile_end(
device: &<Autodiff<B, C> as BackendTypes>::Device,
token: ProfileToken,
options: ProfileOptions,
) -> Result<ProfileDuration, ExecutionError>
fn profile_end( device: &<Autodiff<B, C> as BackendTypes>::Device, token: ProfileToken, options: ProfileOptions, ) -> Result<ProfileDuration, ExecutionError>
token at the calling stream’s current position. Read more§fn profile_abandon(
device: &<Autodiff<B, C> as BackendTypes>::Device,
token: ProfileToken,
)
fn profile_abandon( device: &<Autodiff<B, C> as BackendTypes>::Device, token: ProfileToken, )
token opened without measuring it, for a caller that
will never reach profile_end. Read more§fn memory_persistent_allocations<Output, Input, Func>(
device: &<Autodiff<B, C> as BackendTypes>::Device,
input: Input,
func: Func,
) -> Output
fn memory_persistent_allocations<Output, Input, Func>( device: &<Autodiff<B, C> as BackendTypes>::Device, input: Input, func: Func, ) -> Output
§fn memory_cleanup(device: &<Autodiff<B, C> as BackendTypes>::Device)
fn memory_cleanup(device: &<Autodiff<B, C> as BackendTypes>::Device)
§fn memory_pool_report(
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> Option<Vec<SlicedPoolReport>>
fn memory_pool_report( device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> Option<Vec<SlicedPoolReport>>
None on a backend that does not report one, or whose
stream has failed. Read more§fn memory_pool_usage(
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> Option<MemoryPoolUsage>
fn memory_pool_usage( device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> Option<MemoryPoolUsage>
None on a backend that does not
report one, or whose stream has failed.§fn staging<'a, Iter>(
data: Iter,
device: &<Autodiff<B, C> as BackendTypes>::Device,
)where
Iter: Iterator<Item = &'a mut TensorData>,
fn staging<'a, Iter>(
data: Iter,
device: &<Autodiff<B, C> as BackendTypes>::Device,
)where
Iter: Iterator<Item = &'a mut TensorData>,
§fn supports_dtype(
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: DType,
) -> bool
fn supports_dtype( device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: DType, ) -> bool
§fn dtype_usage(
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: DType,
) -> EnumSet<DTypeUsage>
fn dtype_usage( device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: DType, ) -> EnumSet<DTypeUsage>
§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.§fn flush(
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> Result<(), ExecutionError>
fn flush( device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> Result<(), ExecutionError>
§fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_prepare(_device: &Self::Device) -> Result<(), ExecutionError>
device for an upcoming graph capture: route allocations into a
stable pool so every buffer allocated before graph_stop_capture can
be pinned. Call before the warmup run. No-op by default. Read more§fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
fn graph_start_capture(_device: &Self::Device) -> Result<(), ExecutionError>
device into a graph (see
graph_stop_capture). Errors on backends
without hardware graph support, so callers fall back to re-running.§fn graph_stop_capture(
_device: &Self::Device,
) -> Result<Self::GraphPrimitive, ExecutionError>
fn graph_stop_capture( _device: &Self::Device, ) -> Result<Self::GraphPrimitive, ExecutionError>
graph_replay.§unsafe fn graph_replay(
_device: &Self::Device,
_graph: &Self::GraphPrimitive,
) -> Result<(), ExecutionError>
unsafe fn graph_replay( _device: &Self::Device, _graph: &Self::GraphPrimitive, ) -> Result<(), ExecutionError>
§impl<B, C> BackendTypes for Autodiff<B, C>where
B: BackendTypes,
C: CheckpointStrategy,
impl<B, C> BackendTypes for Autodiff<B, C>where
B: BackendTypes,
C: CheckpointStrategy,
§type Device = <B as BackendTypes>::Device
type Device = <B as BackendTypes>::Device
§type FloatTensorPrimitive = AutodiffTensor<B>
type FloatTensorPrimitive = AutodiffTensor<B>
§type IntTensorPrimitive = <B as BackendTypes>::IntTensorPrimitive
type IntTensorPrimitive = <B as BackendTypes>::IntTensorPrimitive
§type BoolTensorPrimitive = <B as BackendTypes>::BoolTensorPrimitive
type BoolTensorPrimitive = <B as BackendTypes>::BoolTensorPrimitive
§type QuantizedTensorPrimitive = <B as BackendTypes>::QuantizedTensorPrimitive
type QuantizedTensorPrimitive = <B as BackendTypes>::QuantizedTensorPrimitive
§type GraphPrimitive = GraphUnsupported
type GraphPrimitive = GraphUnsupported
Backend::graph_stop_capture and
consumed by Backend::graph_replay: a backend-owned recording of a
launch sequence that replays as a single dispatch. Read more§impl<B, C> BoolTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> BoolTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn bool_from_data(
data: TensorData,
device: &<B as BackendTypes>::Device,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_from_data( data: TensorData, device: &<B as BackendTypes>::Device, ) -> <B as BackendTypes>::BoolTensorPrimitive
§async fn bool_into_data(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn bool_into_data( tensor: <B as BackendTypes>::BoolTensorPrimitive, ) -> Result<TensorData, ExecutionError>
§fn bool_into_int(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn bool_into_int( tensor: <B as BackendTypes>::BoolTensorPrimitive, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn bool_to_device(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
device: &<B as BackendTypes>::Device,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_to_device( tensor: <B as BackendTypes>::BoolTensorPrimitive, device: &<B as BackendTypes>::Device, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_reshape(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
shape: Shape,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_reshape( tensor: <B as BackendTypes>::BoolTensorPrimitive, shape: Shape, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_slice(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
slices: &[Slice],
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_slice( tensor: <B as BackendTypes>::BoolTensorPrimitive, slices: &[Slice], ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_empty(
shape: Shape,
device: &<B as BackendTypes>::Device,
dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_empty( shape: Shape, device: &<B as BackendTypes>::Device, dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_zeros(
shape: Shape,
device: &<B as BackendTypes>::Device,
dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_zeros( shape: Shape, device: &<B as BackendTypes>::Device, dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_ones(
shape: Shape,
device: &<B as BackendTypes>::Device,
dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_ones( shape: Shape, device: &<B as BackendTypes>::Device, dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_slice_assign(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
slices: &[Slice],
value: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_slice_assign( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, slices: &[Slice], value: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_cat(
tensors: Vec<<B as BackendTypes>::BoolTensorPrimitive>,
dim: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_cat( tensors: Vec<<B as BackendTypes>::BoolTensorPrimitive>, dim: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_equal(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_equal( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_not(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_not( tensor: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_and(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_and( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
&&) operation on two boolean tensors. Read more§fn bool_or(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_or( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
||) operation on two boolean tensors. Read more§fn bool_xor(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_xor( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_into_float(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
out_dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn bool_into_float( tensor: <B as BackendTypes>::BoolTensorPrimitive, out_dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn bool_swap_dims(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_swap_dims( tensor: <B as BackendTypes>::BoolTensorPrimitive, dim1: usize, dim2: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_permute(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
axes: &[usize],
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_permute( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, axes: &[usize], ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_flip(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
axes: &[usize],
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_flip( tensor: <B as BackendTypes>::BoolTensorPrimitive, axes: &[usize], ) -> <B as BackendTypes>::BoolTensorPrimitive
§async fn bool_argwhere(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
async fn bool_argwhere( tensor: <B as BackendTypes>::BoolTensorPrimitive, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn bool_expand(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
shape: Shape,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_expand( tensor: <B as BackendTypes>::BoolTensorPrimitive, shape: Shape, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor to the given shape.§fn bool_repeat_dim(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
dim: usize,
times: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_repeat_dim( tensor: <B as BackendTypes>::BoolTensorPrimitive, dim: usize, times: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_unfold(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
dim: usize,
size: usize,
step: usize,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_unfold( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, dim: usize, size: usize, step: usize, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_mask_where(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
source: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_mask_where( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, source: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_mask_fill(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
value: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_mask_fill( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, value: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§async fn bool_mask_select(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
async fn bool_mask_select( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_gather(
dim: usize,
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_gather( dim: usize, tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_scatter_or(
dim: usize,
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
value: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_scatter_or( dim: usize, tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, value: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_equal_elem(
lhs: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_equal_elem( lhs: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_select(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
dim: usize,
indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_select( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, dim: usize, indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_select_or(
tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
dim: usize,
indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
value: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn bool_select_or( tensor: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, dim: usize, indices: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, value: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn bool_not_equal(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_not_equal( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_not_equal_elem(
lhs: <B as BackendTypes>::BoolTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_not_equal_elem( lhs: <B as BackendTypes>::BoolTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_transpose(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_transpose( tensor: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_any(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_any( tensor: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read more§fn bool_any_dim(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_any_dim( tensor: <B as BackendTypes>::BoolTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn bool_all(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_all( tensor: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read more§fn bool_all_dim(
tensor: <B as BackendTypes>::BoolTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn bool_all_dim( tensor: <B as BackendTypes>::BoolTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::BoolTensorPrimitive
impl<B, C> Copy for Autodiff<B, C>
§impl<C> DispatchKindConversion<Autodiff<Flex, C>> for DispatchTensorwhere
C: CheckpointStrategy + IntoGradientCheckpointingStrategy,
Available on crate features autodiff and flex only.
impl<C> DispatchKindConversion<Autodiff<Flex, C>> for DispatchTensorwhere
C: CheckpointStrategy + IntoGradientCheckpointingStrategy,
autodiff and flex only.§fn try_into_backend(
tensor: DispatchTensor,
) -> Result<BackendTensor<Autodiff<Flex, C>>, String>
fn try_into_backend( tensor: DispatchTensor, ) -> Result<BackendTensor<Autodiff<Flex, C>>, String>
BackendTensor wrapper from a generic, dynamically-routed DispatchTensor. Read more§fn from_backend(tensor: BackendTensor<Autodiff<Flex, C>>) -> DispatchTensor
fn from_backend(tensor: BackendTensor<Autodiff<Flex, C>>) -> DispatchTensor
DispatchTensor.§impl<B, C> DistributedOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> DistributedOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn start_communication_server(
devices: &[<B as BackendTypes>::Device],
config: DistributedConfig,
)
fn start_communication_server( devices: &[<B as BackendTypes>::Device], config: DistributedConfig, )
§fn close_communication_server(device: &<B as BackendTypes>::Device)
fn close_communication_server(device: &<B as BackendTypes>::Device)
§fn register_sync_parameters(
device: &<B as BackendTypes>::Device,
distributed_params: Vec<DistributedParams>,
)
fn register_sync_parameters( device: &<B as BackendTypes>::Device, distributed_params: Vec<DistributedParams>, )
§fn submit_sync_collective(device: &<B as BackendTypes>::Device)
fn submit_sync_collective(device: &<B as BackendTypes>::Device)
§fn submit_gradient_sync(
tensor: TensorRef<Autodiff<B, C>>,
distributed_params: DistributedParams,
)
fn submit_gradient_sync( tensor: TensorRef<Autodiff<B, C>>, distributed_params: DistributedParams, )
§fn all_reduce(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
op: ReduceOperation,
device_ids: Vec<DeviceId>,
) -> CollectiveTensor<Autodiff<B, C>>
fn all_reduce( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, op: ReduceOperation, device_ids: Vec<DeviceId>, ) -> CollectiveTensor<Autodiff<B, C>>
§fn sync_collective(device: &<B as BackendTypes>::Device)
fn sync_collective(device: &<B as BackendTypes>::Device)
§unsafe fn comm_device(tensor: &TensorRef<B>) -> <B as BackendTypes>::Device
unsafe fn comm_device(tensor: &TensorRef<B>) -> <B as BackendTypes>::Device
§unsafe fn float_from_ref(
tensor: &TensorRef<B>,
) -> <B as BackendTypes>::FloatTensorPrimitive
unsafe fn float_from_ref( tensor: &TensorRef<B>, ) -> <B as BackendTypes>::FloatTensorPrimitive
§impl<B, C> FloatTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> FloatTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn float_from_data(
data: TensorData,
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_from_data( data: TensorData, device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_random(
shape: Shape,
distribution: Distribution,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_random( shape: Shape, distribution: Distribution, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_zeros(
shape: Shape,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_zeros( shape: Shape, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_ones(
shape: Shape,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_ones( shape: Shape, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§async fn float_into_data(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn float_into_data( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> Result<TensorData, ExecutionError>
§fn float_to_device(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_to_device( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_empty(
shape: Shape,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_empty( shape: Shape, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_add(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_add( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_add_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_add_scalar( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_sub(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sub( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_sub_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sub_scalar( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_mul(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_mul( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_mul_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_mul_scalar( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_div(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_div( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_div_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_div_scalar( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_remainder(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_remainder( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_remainder_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_remainder_scalar( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_matmul(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_matmul( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cross(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cross( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_neg(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_neg( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_recip(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_recip( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_swap_dims(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_swap_dims( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim1: usize, dim2: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_permute(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
axes: &[usize],
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_permute( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, axes: &[usize], ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_flip(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
axes: &[usize],
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_flip( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, axes: &[usize], ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_reshape(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
shape: Shape,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_reshape( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, shape: Shape, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_gather(
dim: usize,
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_gather( dim: usize, tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_scatter(
dim: usize,
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
update: IndexingUpdateOp,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_scatter( dim: usize, tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, update: IndexingUpdateOp, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_scatter_nd(
data: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
values: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
reduction: IndexingUpdateOp,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_scatter_nd( data: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, values: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, reduction: IndexingUpdateOp, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_gather_nd(
data: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_gather_nd( data: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_select(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_select( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_select_assign(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices: <B as BackendTypes>::IntTensorPrimitive,
value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
update: IndexingUpdateOp,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_select_assign( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, indices: <B as BackendTypes>::IntTensorPrimitive, value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, update: IndexingUpdateOp, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_slice(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
slices: &[Slice],
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_slice( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, slices: &[Slice], ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_slice_assign(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
slices: &[Slice],
value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_slice_assign( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, slices: &[Slice], value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_mask_where(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive,
source: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_mask_where( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, mask: <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive, source: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_mask_fill(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
value: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_mask_fill( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, value: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_equal(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_equal( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_equal_elem(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_equal_elem( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_greater(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_greater( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_greater_elem(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_greater_elem( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_greater_equal(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_greater_equal( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_greater_equal_elem(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_greater_equal_elem( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_lower(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_lower( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_lower_elem(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_lower_elem( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_lower_equal(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_lower_equal( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_lower_equal_elem(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_lower_equal_elem( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_is_nan(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn float_is_nan( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn float_is_inf(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
fn float_is_inf( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive
§fn float_detach(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_detach( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_set_require_grad(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
require_grad: bool,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_set_require_grad( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, require_grad: bool, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
require_grad flag of a tensor.§fn float_is_require_grad(
tensor: &<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> bool
fn float_is_require_grad( tensor: &<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> bool
require_grad flag of a tensor.§fn float_mean(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_mean( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_sum(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sum( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_mean_dim(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_mean_dim( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_sum_dim(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sum_dim( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_prod(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_prod( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_prod_dim(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_prod_dim( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cumsum(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cumsum( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cumprod(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cumprod( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cummin(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cummin( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cummax(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cummax( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_argmax(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_argmax( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn float_argtopk(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_argtopk( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn float_topk(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_topk( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_argmin(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_argmin( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn float_exp(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_exp( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_log(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_log( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_log1p(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_log1p( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_powi_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_powi_scalar( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_powf_scalar_impl(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
value: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_powf_scalar_impl( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, value: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
value. Read more§fn float_sqrt(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sqrt( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_abs(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_abs( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cos(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cos( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_sin(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sin( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_tanh(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_tanh( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cosh(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cosh( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_sinh(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sinh( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_tan(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_tan( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_asin(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_asin( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_acos(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_acos( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_atan(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_atan( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_asinh(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_asinh( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_acosh(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_acosh( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_atanh(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_atanh( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_atan2(
y: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
x: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_atan2( y: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, x: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_round(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_round( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_floor(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_floor( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_ceil(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_ceil( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_trunc(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_trunc( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_erf(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_erf( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cat(
tensors: Vec<<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive>,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cat( tensors: Vec<<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive>, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_max_dim(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_max_dim( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_max_dim_with_indices(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices_dtype: IntDType,
) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_max_dim_with_indices( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, indices_dtype: IntDType, ) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
§fn float_min_dim(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_min_dim( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_min_dim_with_indices(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
indices_dtype: IntDType,
) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_min_dim_with_indices( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, indices_dtype: IntDType, ) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
§fn float_into_int(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_into_int( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn float_powf(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_powf( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_hypot(
lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_hypot( lhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_sign(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sign( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
tensor. Read more§fn float_expand(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
shape: Shape,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_expand( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, shape: Shape, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
tensor to the given shape.§fn float_sort(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_sort( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
tensor by value in along a given dimension. Read more§fn float_sort_with_indices(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
indices_dtype: IntDType,
) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_sort_with_indices( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, indices_dtype: IntDType, ) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
tensor by value in along a given dimension. Read more§fn float_argsort(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
descending: bool,
out_dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn float_argsort( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, descending: bool, out_dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read more§fn float_repeat_dim(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
times: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_repeat_dim( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, times: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_cast(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_cast( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_unfold(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
size: usize,
step: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn float_unfold( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, size: usize, step: usize, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn float_full(
shape: Shape,
fill_value: Scalar,
device: &<B as BackendTypes>::Device,
dtype: FloatDType,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_full( shape: Shape, fill_value: Scalar, device: &<B as BackendTypes>::Device, dtype: FloatDType, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_clamp_min(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
min: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_clamp_min( tensor: <B as BackendTypes>::FloatTensorPrimitive, min: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_clamp_max(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
max: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_clamp_max( tensor: <B as BackendTypes>::FloatTensorPrimitive, max: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_clamp(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
min: Scalar,
max: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_clamp( tensor: <B as BackendTypes>::FloatTensorPrimitive, min: Scalar, max: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_transpose(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_transpose( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_mask_select(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
) -> impl Future<Output = <B as BackendTypes>::FloatTensorPrimitive> + Send + 'static
fn float_mask_select( tensor: <B as BackendTypes>::FloatTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, ) -> impl Future<Output = <B as BackendTypes>::FloatTensorPrimitive> + Send + 'static
§fn float_not_equal(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_not_equal( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_not_equal_elem(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_not_equal_elem( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_sum_dims(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dims: &[usize],
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_sum_dims( tensor: <B as BackendTypes>::FloatTensorPrimitive, dims: &[usize], ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_powi(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powi( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_powi_scalar_impl(
lhs: <B as BackendTypes>::FloatTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powi_scalar_impl( lhs: <B as BackendTypes>::FloatTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_powf_scalar(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
value: Scalar,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_powf_scalar( tensor: <B as BackendTypes>::FloatTensorPrimitive, value: Scalar, ) -> <B as BackendTypes>::FloatTensorPrimitive
value. Read more§fn float_topk_with_indices(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn float_topk_with_indices( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::FloatTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
§fn float_max(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_max( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_min(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_min( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_max_abs(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_max_abs( tensor: <B as BackendTypes>::FloatTensorPrimitive, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_max_abs_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_max_abs_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_any(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_any( tensor: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read more§fn float_any_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_any_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_all(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_all( tensor: <B as BackendTypes>::FloatTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read more§fn float_all_dim(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn float_all_dim( tensor: <B as BackendTypes>::FloatTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn float_grid_sample_2d(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
grid: <B as BackendTypes>::FloatTensorPrimitive,
options: GridSampleOptions,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_grid_sample_2d( tensor: <B as BackendTypes>::FloatTensorPrimitive, grid: <B as BackendTypes>::FloatTensorPrimitive, options: GridSampleOptions, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn float_pad(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
padding: &[(usize, usize)],
mode: PadMode,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn float_pad( tensor: <B as BackendTypes>::FloatTensorPrimitive, padding: &[(usize, usize)], mode: PadMode, ) -> <B as BackendTypes>::FloatTensorPrimitive
(before, after) pair per dimension.§impl<B, C> IntTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> IntTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn int_from_data(
data: TensorData,
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_from_data( data: TensorData, device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> <B as BackendTypes>::IntTensorPrimitive
§async fn int_into_data(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn int_into_data( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> Result<TensorData, ExecutionError>
§fn int_to_device(
tensor: <B as BackendTypes>::IntTensorPrimitive,
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_to_device( tensor: <B as BackendTypes>::IntTensorPrimitive, device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_reshape(
tensor: <B as BackendTypes>::IntTensorPrimitive,
shape: Shape,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_reshape( tensor: <B as BackendTypes>::IntTensorPrimitive, shape: Shape, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_slice(
tensor: <B as BackendTypes>::IntTensorPrimitive,
slices: &[Slice],
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_slice( tensor: <B as BackendTypes>::IntTensorPrimitive, slices: &[Slice], ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_empty(
shape: Shape,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_empty( shape: Shape, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_slice_assign(
tensor: <B as BackendTypes>::IntTensorPrimitive,
slices: &[Slice],
value: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_slice_assign( tensor: <B as BackendTypes>::IntTensorPrimitive, slices: &[Slice], value: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_cat(
tensors: Vec<<B as BackendTypes>::IntTensorPrimitive>,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_cat( tensors: Vec<<B as BackendTypes>::IntTensorPrimitive>, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_equal(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_equal( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_equal_elem(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_equal_elem( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_add(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_add( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_add_scalar(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_add_scalar( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_clamp_min(
tensor: <B as BackendTypes>::IntTensorPrimitive,
min: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_clamp_min( tensor: <B as BackendTypes>::IntTensorPrimitive, min: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_clamp_max(
tensor: <B as BackendTypes>::IntTensorPrimitive,
max: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_clamp_max( tensor: <B as BackendTypes>::IntTensorPrimitive, max: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_clamp(
tensor: <B as BackendTypes>::IntTensorPrimitive,
min: Scalar,
max: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_clamp( tensor: <B as BackendTypes>::IntTensorPrimitive, min: Scalar, max: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_sub(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_sub( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_sub_scalar(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_sub_scalar( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_mul(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_mul( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_mul_scalar(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_mul_scalar( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_div(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_div( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_div_scalar(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_div_scalar( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_remainder(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_remainder( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_remainder_scalar(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_remainder_scalar( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_matmul(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_matmul( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_neg(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_neg( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_zeros(
shape: Shape,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_zeros( shape: Shape, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_ones(
shape: Shape,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_ones( shape: Shape, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_full(
shape: Shape,
fill_value: Scalar,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_full( shape: Shape, fill_value: Scalar, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_sum(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_sum( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_sum_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_sum_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_mean(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_mean( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_mean_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_mean_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_cumsum(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_cumsum( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_cumprod(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_cumprod( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_cummin(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_cummin( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_cummax(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_cummax( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_repeat_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
times: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_repeat_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, times: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_greater(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_greater( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_greater_elem(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_greater_elem( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_greater_equal(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_greater_equal( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_greater_equal_elem(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_greater_equal_elem( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_lower(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_lower( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_lower_elem(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_lower_elem( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_lower_equal(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_lower_equal( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_lower_equal_elem(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_lower_equal_elem( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_gather(
dim: usize,
tensor: <B as BackendTypes>::IntTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_gather( dim: usize, tensor: <B as BackendTypes>::IntTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <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
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_nd(
data: <B as BackendTypes>::IntTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
values: <B as BackendTypes>::IntTensorPrimitive,
reduction: IndexingUpdateOp,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_scatter_nd( data: <B as BackendTypes>::IntTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, values: <B as BackendTypes>::IntTensorPrimitive, reduction: IndexingUpdateOp, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_select(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_select( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <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
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_mask_where(
tensor: <B as BackendTypes>::IntTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
value: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_mask_where( tensor: <B as BackendTypes>::IntTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, value: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_mask_fill(
tensor: <B as BackendTypes>::IntTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
value: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_mask_fill( tensor: <B as BackendTypes>::IntTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, value: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§async fn int_mask_select(
tensor: <B as BackendTypes>::IntTensorPrimitive,
mask: <B as BackendTypes>::BoolTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
async fn int_mask_select( tensor: <B as BackendTypes>::IntTensorPrimitive, mask: <B as BackendTypes>::BoolTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_argmax(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_argmax( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_argtopk(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_argtopk( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_argmin(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_argmin( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_max(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_max( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_max_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_max_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§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
§fn int_max_dim_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_max_dim_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
§fn int_min(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_min( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_min_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_min_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_min_dim_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_min_dim_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
§fn int_abs(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_abs( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_into_float(
tensor: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn int_into_float( tensor: <B as BackendTypes>::IntTensorPrimitive, out_dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn int_swap_dims(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_swap_dims( tensor: <B as BackendTypes>::IntTensorPrimitive, dim1: usize, dim2: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_random(
shape: Shape,
distribution: Distribution,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: IntDType,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_random( shape: Shape, distribution: Distribution, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: IntDType, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_arange(
range: Range<i64>,
device: &<Autodiff<B, C> as BackendTypes>::Device,
dtype: IntDType,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_arange( range: Range<i64>, device: &<Autodiff<B, C> as BackendTypes>::Device, dtype: IntDType, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_permute(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
axes: &[usize],
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_permute( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, axes: &[usize], ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_flip(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
axes: &[usize],
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_flip( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, axes: &[usize], ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_sign(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_sign( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
tensor. Read more§fn int_prod(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_prod( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_prod_dim(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_prod_dim( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_expand(
tensor: <B as BackendTypes>::IntTensorPrimitive,
shape: Shape,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_expand( tensor: <B as BackendTypes>::IntTensorPrimitive, shape: Shape, ) -> <B as BackendTypes>::IntTensorPrimitive
tensor to the given shape.§fn int_sort(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_sort( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
tensor by value along a given dimension. Read more§fn int_sort_with_indices(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> (<Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive)
fn int_sort_with_indices( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> (<Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive)
tensor by value along a given dimension. Read more§fn int_argsort(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
dim: usize,
descending: bool,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_argsort( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, dim: usize, descending: bool, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
tensor by value
along a given dimension. Read more§fn bitwise_and(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_and( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_and_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_and_scalar( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_or(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_or( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_or_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_or_scalar( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_xor(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_xor( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_xor_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_xor_scalar( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_not(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_not( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_left_shift(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_left_shift( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_left_shift_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_left_shift_scalar( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_right_shift(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_right_shift( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn bitwise_right_shift_scalar(
lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn bitwise_right_shift_scalar( lhs: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_cast(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
dtype: IntDType,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_cast( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, dtype: IntDType, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_unfold(
tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
dim: usize,
size: usize,
step: usize,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn int_unfold( tensor: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, dim: usize, size: usize, step: usize, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn int_gather_nd(
_data: <B as BackendTypes>::IntTensorPrimitive,
_indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_gather_nd( _data: <B as BackendTypes>::IntTensorPrimitive, _indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_not_equal(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_not_equal( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_not_equal_elem(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_not_equal_elem( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_square(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_square( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_powi(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_powi( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_powi_scalar(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_powi_scalar( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_powi_scalar_impl(
lhs: <B as BackendTypes>::IntTensorPrimitive,
rhs: Scalar,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_powi_scalar_impl( lhs: <B as BackendTypes>::IntTensorPrimitive, rhs: Scalar, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_topk_with_indices(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
k: usize,
) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn int_topk_with_indices( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, k: usize, ) -> (<B as BackendTypes>::IntTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
§fn int_max_abs(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_max_abs( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_max_abs_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_max_abs_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_transpose(
tensor: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_transpose( tensor: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_arange_step(
range: Range<i64>,
step: usize,
device: &<B as BackendTypes>::Device,
dtype: IntDType,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_arange_step( range: Range<i64>, step: usize, device: &<B as BackendTypes>::Device, dtype: IntDType, ) -> <B as BackendTypes>::IntTensorPrimitive
§fn int_any(
tensor: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_any( tensor: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluates to True. Read more§fn int_any_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_any_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_all(
tensor: <B as BackendTypes>::IntTensorPrimitive,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_all( tensor: <B as BackendTypes>::IntTensorPrimitive, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
tensor evaluate to True. Read more§fn int_all_dim(
tensor: <B as BackendTypes>::IntTensorPrimitive,
dim: usize,
out_dtype: BoolStore,
) -> <B as BackendTypes>::BoolTensorPrimitive
fn int_all_dim( tensor: <B as BackendTypes>::IntTensorPrimitive, dim: usize, out_dtype: BoolStore, ) -> <B as BackendTypes>::BoolTensorPrimitive
§fn int_pad(
tensor: <B as BackendTypes>::IntTensorPrimitive,
padding: &[(usize, usize)],
mode: PadMode,
) -> <B as BackendTypes>::IntTensorPrimitive
fn int_pad( tensor: <B as BackendTypes>::IntTensorPrimitive, padding: &[(usize, usize)], mode: PadMode, ) -> <B as BackendTypes>::IntTensorPrimitive
(before, after) pair per dimension.§impl<B, C> ModuleOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> ModuleOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn batch_norm_train(
x: AutodiffTensor<B>,
gamma: AutodiffTensor<B>,
beta: AutodiffTensor<B>,
epsilon: f64,
) -> BatchNormTrain<Autodiff<B, C>>
fn batch_norm_train( x: AutodiffTensor<B>, gamma: AutodiffTensor<B>, beta: AutodiffTensor<B>, epsilon: f64, ) -> BatchNormTrain<Autodiff<B, C>>
§fn batch_norm_train_backward(
_x: AutodiffTensor<B>,
_gamma: AutodiffTensor<B>,
_mean: AutodiffTensor<B>,
_variance: AutodiffTensor<B>,
_epsilon: f64,
_output_grad: AutodiffTensor<B>,
) -> BatchNormTrainBackward<Autodiff<B, C>>
fn batch_norm_train_backward( _x: AutodiffTensor<B>, _gamma: AutodiffTensor<B>, _mean: AutodiffTensor<B>, _variance: AutodiffTensor<B>, _epsilon: f64, _output_grad: AutodiffTensor<B>, ) -> BatchNormTrainBackward<Autodiff<B, C>>
gamma and beta, given the gradient of its
output. mean and variance are the statistics it returned.§fn embedding(
weights: AutodiffTensor<B>,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> AutodiffTensor<B>
fn embedding( weights: AutodiffTensor<B>, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> AutodiffTensor<B>
§fn embedding_backward(
_weights: AutodiffTensor<B>,
_output: AutodiffTensor<B>,
_indices: <B as BackendTypes>::IntTensorPrimitive,
) -> AutodiffTensor<B>
fn embedding_backward( _weights: AutodiffTensor<B>, _output: AutodiffTensor<B>, _indices: <B as BackendTypes>::IntTensorPrimitive, ) -> AutodiffTensor<B>
§fn linear(
x: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
bias: Option<AutodiffTensor<B>>,
) -> AutodiffTensor<B>
fn linear( x: AutodiffTensor<B>, weight: AutodiffTensor<B>, bias: Option<AutodiffTensor<B>>, ) -> AutodiffTensor<B>
§fn linear_x_backward(
_weight: AutodiffTensor<B>,
_output_grad: AutodiffTensor<B>,
) -> AutodiffTensor<B>
fn linear_x_backward( _weight: AutodiffTensor<B>, _output_grad: AutodiffTensor<B>, ) -> AutodiffTensor<B>
x.§fn linear_weight_backward(
_x: AutodiffTensor<B>,
_output_grad: AutodiffTensor<B>,
) -> AutodiffTensor<B>
fn linear_weight_backward( _x: AutodiffTensor<B>, _output_grad: AutodiffTensor<B>, ) -> AutodiffTensor<B>
weight.§fn linear_bias_backward(_output_grad: AutodiffTensor<B>) -> AutodiffTensor<B>
fn linear_bias_backward(_output_grad: AutodiffTensor<B>) -> AutodiffTensor<B>
bias.§fn conv1d(
x: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
bias: Option<AutodiffTensor<B>>,
options: ConvOptions<1>,
) -> AutodiffTensor<B>
fn conv1d( x: AutodiffTensor<B>, weight: AutodiffTensor<B>, bias: Option<AutodiffTensor<B>>, options: ConvOptions<1>, ) -> AutodiffTensor<B>
§fn conv_transpose1d(
x: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
bias: Option<AutodiffTensor<B>>,
options: ConvTransposeOptions<1>,
) -> AutodiffTensor<B>
fn conv_transpose1d( x: AutodiffTensor<B>, weight: AutodiffTensor<B>, bias: Option<AutodiffTensor<B>>, options: ConvTransposeOptions<1>, ) -> AutodiffTensor<B>
§fn conv2d(
x: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
bias: Option<AutodiffTensor<B>>,
options: ConvOptions<2>,
) -> AutodiffTensor<B>
fn conv2d( x: AutodiffTensor<B>, weight: AutodiffTensor<B>, bias: Option<AutodiffTensor<B>>, options: ConvOptions<2>, ) -> AutodiffTensor<B>
§fn deform_conv2d(
x: AutodiffTensor<B>,
offset: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
mask: Option<AutodiffTensor<B>>,
bias: Option<AutodiffTensor<B>>,
options: DeformConvOptions<2>,
) -> AutodiffTensor<B>
fn deform_conv2d( x: AutodiffTensor<B>, offset: AutodiffTensor<B>, weight: AutodiffTensor<B>, mask: Option<AutodiffTensor<B>>, bias: Option<AutodiffTensor<B>>, options: DeformConvOptions<2>, ) -> AutodiffTensor<B>
§fn deform_conv2d_backward(
_x: AutodiffTensor<B>,
_offset: AutodiffTensor<B>,
_weight: AutodiffTensor<B>,
_mask: Option<AutodiffTensor<B>>,
_bias: Option<AutodiffTensor<B>>,
_output_grad: AutodiffTensor<B>,
_options: DeformConvOptions<2>,
) -> DeformConv2dBackward<Autodiff<B, C>>
fn deform_conv2d_backward( _x: AutodiffTensor<B>, _offset: AutodiffTensor<B>, _weight: AutodiffTensor<B>, _mask: Option<AutodiffTensor<B>>, _bias: Option<AutodiffTensor<B>>, _output_grad: AutodiffTensor<B>, _options: DeformConvOptions<2>, ) -> DeformConv2dBackward<Autodiff<B, C>>
§fn conv_transpose2d(
x: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
bias: Option<AutodiffTensor<B>>,
options: ConvTransposeOptions<2>,
) -> AutodiffTensor<B>
fn conv_transpose2d( x: AutodiffTensor<B>, weight: AutodiffTensor<B>, bias: Option<AutodiffTensor<B>>, options: ConvTransposeOptions<2>, ) -> AutodiffTensor<B>
§fn conv3d(
x: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
bias: Option<AutodiffTensor<B>>,
options: ConvOptions<3>,
) -> AutodiffTensor<B>
fn conv3d( x: AutodiffTensor<B>, weight: AutodiffTensor<B>, bias: Option<AutodiffTensor<B>>, options: ConvOptions<3>, ) -> AutodiffTensor<B>
§fn conv_transpose3d(
x: AutodiffTensor<B>,
weight: AutodiffTensor<B>,
bias: Option<AutodiffTensor<B>>,
options: ConvTransposeOptions<3>,
) -> AutodiffTensor<B>
fn conv_transpose3d( x: AutodiffTensor<B>, weight: AutodiffTensor<B>, bias: Option<AutodiffTensor<B>>, options: ConvTransposeOptions<3>, ) -> AutodiffTensor<B>
§fn avg_pool1d(
x: AutodiffTensor<B>,
kernel_size: usize,
stride: usize,
padding: usize,
count_include_pad: bool,
ceil_mode: bool,
) -> AutodiffTensor<B>
fn avg_pool1d( x: AutodiffTensor<B>, kernel_size: usize, stride: usize, padding: usize, count_include_pad: bool, ceil_mode: bool, ) -> AutodiffTensor<B>
§fn avg_pool2d(
x: AutodiffTensor<B>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
count_include_pad: bool,
ceil_mode: bool,
) -> AutodiffTensor<B>
fn avg_pool2d( x: AutodiffTensor<B>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], count_include_pad: bool, ceil_mode: bool, ) -> AutodiffTensor<B>
§fn avg_pool2d_backward(
_x: AutodiffTensor<B>,
_grad: AutodiffTensor<B>,
_kernel_size: [usize; 2],
_stride: [usize; 2],
_padding: [usize; 2],
_count_include_pad: bool,
_ceil_mode: bool,
) -> AutodiffTensor<B>
fn avg_pool2d_backward( _x: AutodiffTensor<B>, _grad: AutodiffTensor<B>, _kernel_size: [usize; 2], _stride: [usize; 2], _padding: [usize; 2], _count_include_pad: bool, _ceil_mode: bool, ) -> AutodiffTensor<B>
§fn max_pool1d(
x: AutodiffTensor<B>,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
) -> AutodiffTensor<B>
fn max_pool1d( x: AutodiffTensor<B>, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, ) -> AutodiffTensor<B>
§fn max_pool1d_with_indices(
x: AutodiffTensor<B>,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
int_dtype: IntDType,
) -> MaxPool1dWithIndices<Autodiff<B, C>>
fn max_pool1d_with_indices( x: AutodiffTensor<B>, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, int_dtype: IntDType, ) -> MaxPool1dWithIndices<Autodiff<B, C>>
§fn max_pool1d_with_indices_backward(
x: AutodiffTensor<B>,
kernel_size: usize,
stride: usize,
padding: usize,
dilation: usize,
ceil_mode: bool,
output_grad: AutodiffTensor<B>,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> MaxPool1dBackward<Autodiff<B, C>>
fn max_pool1d_with_indices_backward( x: AutodiffTensor<B>, kernel_size: usize, stride: usize, padding: usize, dilation: usize, ceil_mode: bool, output_grad: AutodiffTensor<B>, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> MaxPool1dBackward<Autodiff<B, C>>
§fn max_pool2d(
x: AutodiffTensor<B>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
) -> AutodiffTensor<B>
fn max_pool2d( x: AutodiffTensor<B>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, ) -> AutodiffTensor<B>
§fn max_pool2d_with_indices(
x: AutodiffTensor<B>,
kernel_size: [usize; 2],
stride: [usize; 2],
padding: [usize; 2],
dilation: [usize; 2],
ceil_mode: bool,
int_dtype: IntDType,
) -> MaxPool2dWithIndices<Autodiff<B, C>>
fn max_pool2d_with_indices( x: AutodiffTensor<B>, kernel_size: [usize; 2], stride: [usize; 2], padding: [usize; 2], dilation: [usize; 2], ceil_mode: bool, int_dtype: IntDType, ) -> MaxPool2dWithIndices<Autodiff<B, C>>
§fn max_pool2d_with_indices_backward(
_x: AutodiffTensor<B>,
_kernel_size: [usize; 2],
_stride: [usize; 2],
_padding: [usize; 2],
_dilation: [usize; 2],
_ceil_mode: bool,
_output_grad: AutodiffTensor<B>,
_indices: <B as BackendTypes>::IntTensorPrimitive,
) -> MaxPool2dBackward<Autodiff<B, C>>
fn max_pool2d_with_indices_backward( _x: AutodiffTensor<B>, _kernel_size: [usize; 2], _stride: [usize; 2], _padding: [usize; 2], _dilation: [usize; 2], _ceil_mode: bool, _output_grad: AutodiffTensor<B>, _indices: <B as BackendTypes>::IntTensorPrimitive, ) -> MaxPool2dBackward<Autodiff<B, C>>
§fn adaptive_avg_pool1d(
x: AutodiffTensor<B>,
output_size: usize,
) -> AutodiffTensor<B>
fn adaptive_avg_pool1d( x: AutodiffTensor<B>, output_size: usize, ) -> AutodiffTensor<B>
§fn adaptive_avg_pool2d(
x: AutodiffTensor<B>,
output_size: [usize; 2],
) -> AutodiffTensor<B>
fn adaptive_avg_pool2d( x: AutodiffTensor<B>, output_size: [usize; 2], ) -> AutodiffTensor<B>
§fn adaptive_avg_pool2d_backward(
_x: AutodiffTensor<B>,
_grad: AutodiffTensor<B>,
) -> AutodiffTensor<B>
fn adaptive_avg_pool2d_backward( _x: AutodiffTensor<B>, _grad: AutodiffTensor<B>, ) -> AutodiffTensor<B>
§fn adaptive_avg_pool3d(
x: AutodiffTensor<B>,
output_size: [usize; 3],
) -> AutodiffTensor<B>
fn adaptive_avg_pool3d( x: AutodiffTensor<B>, output_size: [usize; 3], ) -> AutodiffTensor<B>
§fn adaptive_avg_pool3d_backward(
_x: AutodiffTensor<B>,
_grad: AutodiffTensor<B>,
) -> AutodiffTensor<B>
fn adaptive_avg_pool3d_backward( _x: AutodiffTensor<B>, _grad: AutodiffTensor<B>, ) -> AutodiffTensor<B>
§fn interpolate(
x: AutodiffTensor<B>,
output_size: [usize; 2],
options: InterpolateOptions,
) -> AutodiffTensor<B>
fn interpolate( x: AutodiffTensor<B>, output_size: [usize; 2], options: InterpolateOptions, ) -> AutodiffTensor<B>
§fn interpolate_backward(
_x: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
_grad: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
_output_size: [usize; 2],
_options: InterpolateOptions,
) -> AutodiffTensor<B>
fn interpolate_backward( _x: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, _grad: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, _output_size: [usize; 2], _options: InterpolateOptions, ) -> AutodiffTensor<B>
§fn attention(
query: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
key: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
mask: Option<<Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive>,
attn_bias: Option<<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive>,
options: AttentionModuleOptions,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn attention( query: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, key: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, value: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, mask: Option<<Autodiff<B, C> as BackendTypes>::BoolTensorPrimitive>, attn_bias: Option<<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive>, options: AttentionModuleOptions, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn ctc_loss(
log_probs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
targets: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
input_lengths: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
target_lengths: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive,
blank: usize,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn ctc_loss( log_probs: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, targets: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, input_lengths: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, target_lengths: <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive, blank: usize, ) -> <Autodiff<B, C> 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
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 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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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.§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
§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
§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
§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
§fn layer_norm(
tensor: <B as BackendTypes>::FloatTensorPrimitive,
gamma: <B as BackendTypes>::FloatTensorPrimitive,
beta: Option<<B as BackendTypes>::FloatTensorPrimitive>,
epsilon: f64,
) -> <B as BackendTypes>::FloatTensorPrimitive
fn layer_norm( tensor: <B as BackendTypes>::FloatTensorPrimitive, gamma: <B as BackendTypes>::FloatTensorPrimitive, beta: Option<<B as BackendTypes>::FloatTensorPrimitive>, epsilon: f64, ) -> <B as BackendTypes>::FloatTensorPrimitive
§fn has_ctc_loss_backward() -> bool
fn has_ctc_loss_backward() -> bool
§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
§impl<B, C> QTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> QTensorOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§fn q_from_data(
data: TensorData,
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn q_from_data( data: TensorData, device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn quantize(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
scheme: &QuantScheme,
qparams: QuantizationParametersPrimitive<Autodiff<B, C>>,
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn quantize( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, scheme: &QuantScheme, qparams: QuantizationParametersPrimitive<Autodiff<B, C>>, ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn quantize_dynamic(
tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
scheme: &QuantScheme,
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn quantize_dynamic( tensor: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, scheme: &QuantScheme, ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn dequantize(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
dtype: FloatDType,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn dequantize( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, dtype: FloatDType, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
§fn q_to_device(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
device: &<Autodiff<B, C> as BackendTypes>::Device,
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn q_to_device( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, device: &<Autodiff<B, C> as BackendTypes>::Device, ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn q_reshape(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
shape: Shape,
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn q_reshape( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, shape: Shape, ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§async fn q_into_data(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
) -> Result<TensorData, ExecutionError>
async fn q_into_data( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, ) -> Result<TensorData, ExecutionError>
§fn q_swap_dims(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
dim1: usize,
dim2: usize,
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn q_swap_dims( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, dim1: usize, dim2: usize, ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn q_permute(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
axes: &[usize],
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn q_permute( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, axes: &[usize], ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn q_flip(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
axes: &[usize],
) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
fn q_flip( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, axes: &[usize], ) -> <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive
§fn q_argmax(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn q_argmax( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn q_argmin(
tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
out_dtype: IntDType,
) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
fn q_argmin( tensor: <Autodiff<B, C> as BackendTypes>::QuantizedTensorPrimitive, dim: usize, out_dtype: IntDType, ) -> <Autodiff<B, C> as BackendTypes>::IntTensorPrimitive
§fn q_detach(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_detach( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§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.§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.§fn q_expand(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
shape: Shape,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_expand( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, shape: Shape, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
tensor to the given shape.§fn q_transpose(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_transpose( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§fn q_select(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_select( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§fn q_slice(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
slices: &[Slice],
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_slice( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, slices: &[Slice], ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§fn q_gather(
dim: usize,
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
indices: <B as BackendTypes>::IntTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_gather( dim: usize, tensor: <B as BackendTypes>::QuantizedTensorPrimitive, indices: <B as BackendTypes>::IntTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§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
§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>
§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>
§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>
§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>
§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>
§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>
§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>
§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>
§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>
§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>
§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>
§fn q_matmul(
lhs: TensorPrimitive<B>,
rhs: TensorPrimitive<B>,
) -> TensorPrimitive<B>
fn q_matmul( lhs: TensorPrimitive<B>, rhs: TensorPrimitive<B>, ) -> TensorPrimitive<B>
§fn q_neg(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_neg( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_recip(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_recip( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_sum(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sum( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§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>
§fn q_prod(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_prod( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§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>
§fn q_mean(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_mean( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§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>
§fn q_cumsum(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cumsum( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
§fn q_cumprod(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cumprod( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
§fn q_cummin(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cummin( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
§fn q_cummax(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
) -> TensorPrimitive<B>
fn q_cummax( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, ) -> TensorPrimitive<B>
§fn q_exp(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_exp( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_log(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_log( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_log1p(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_log1p( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§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>
§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>
§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>
§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>
§fn q_sqrt(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sqrt( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_abs(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_abs( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§fn q_cos(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_cos( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_sin(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sin( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_tan(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_tan( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_cosh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_cosh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_sinh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_sinh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_tanh(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_tanh( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§fn q_erf(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> TensorPrimitive<B>
fn q_erf( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> TensorPrimitive<B>
§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
§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
§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
§fn q_topk_with_indices(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
dim: usize,
k: usize,
out_dtype: IntDType,
) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
fn q_topk_with_indices( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, dim: usize, k: usize, out_dtype: IntDType, ) -> (<B as BackendTypes>::QuantizedTensorPrimitive, <B as BackendTypes>::IntTensorPrimitive)
§fn q_max(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_max( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§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
§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)
§fn q_min(
tensor: <B as BackendTypes>::QuantizedTensorPrimitive,
) -> <B as BackendTypes>::QuantizedTensorPrimitive
fn q_min( tensor: <B as BackendTypes>::QuantizedTensorPrimitive, ) -> <B as BackendTypes>::QuantizedTensorPrimitive
§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
§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)
§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
§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
§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 more§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
§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 more§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
§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 more§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 more§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 more§impl<B, C> SignalOps for Autodiff<B, C>
impl<B, C> SignalOps for Autodiff<B, C>
§fn rfft(
signal: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
n: Option<usize>,
) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive)
fn rfft( signal: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, n: Option<usize>, ) -> (<Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive)
dim, truncating or padding to n when supplied.
Returns the real and imaginary components of the one-sided spectrum.§fn irfft(
spectrum_re: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
spectrum_im: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive,
dim: usize,
n: Option<usize>,
) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
fn irfft( spectrum_re: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, spectrum_im: <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive, dim: usize, n: Option<usize>, ) -> <Autodiff<B, C> as BackendTypes>::FloatTensorPrimitive
dim, with optional output length n.§impl<B, C> TransactionOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
impl<B, C> TransactionOps<Autodiff<B, C>> for Autodiff<B, C>where
B: Backend,
C: CheckpointStrategy,
§async fn tr_execute(
transaction: TransactionPrimitive<Autodiff<B, C>>,
) -> Result<TransactionPrimitiveData, ExecutionError>
async fn tr_execute( transaction: TransactionPrimitive<Autodiff<B, C>>, ) -> Result<TransactionPrimitiveData, ExecutionError>
Auto Trait Implementations§
impl<B, C> Freeze for Autodiff<B, C>
impl<B, C> RefUnwindSafe for Autodiff<B, C>where
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<B, C> Send for Autodiff<B, C>
impl<B, C> Sync for Autodiff<B, C>
impl<B, C> Unpin for Autodiff<B, C>
impl<B, C> UnsafeUnpin for Autodiff<B, C>
impl<B, C> UnwindSafe for Autodiff<B, C>where
B: UnwindSafe,
C: UnwindSafe,
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,
§impl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().