Traits§
- Arange
Args - Represents the arguments for the
arange
function. - ArgReduce
Args - AvgPool1d
Args - AvgPool2d
Args - Clamp
Bound - Flash
Attention Opts - Flatten
Args - MaxPool1d
Args - MaxPool2d
Args - Reduce
Args - ToPair
- VarArgs
Functions§
- abs
- add
- Adds two
Tensor
objects. - arange
- Creates a 1-D
Tensor
with values from a range. - argmax
- argmin
- avg_
pool1d - avg_
pool2d - broadcast_
left - broadcast_
right - broadcast_
to - broadcast_
to_ unchecked - cat
- chunk
- clamp
- conv1d
- conv2d
- conv_
transpose1d - conv_
transpose2d - cos
- div
- Divides two
Tensor
objects. - dropout
- eq
- erf
- exp
- flash_
attention - flatten
- from_
array - Creates a
Tensor
from an array of values. - from_
safetensor - Creates a
Tensor
from asafetensors::TensorView
. - full
- Creates a
Tensor
filled with a specified value. - full_
like - Creates a
Tensor
filled with a specified value, with the same shape, data type and device as anotherTensor
. - gather
- ge
- gelu
- gt
- index_
add - index_
select - le
- linspace
- log
- log2
- log10
- log_
softmax - lt
- matmul
- max
- max_
pool1d - max_
pool2d - maximum
- mean
- min
- minimum
- mul
- Multiplies two
Tensor
objects. - narrow
- ne
- neg
- new_
gelu - ones
- Creates a
Tensor
filled with ones. - ones_
like - Creates a
Tensor
filled with ones, with the same shape, data type and device as anotherTensor
. - permute
- powf
- rand
- Creates a
Tensor
filled with random values from a uniform distribution on the interval [0, 1). - rand_
like - rand_
with - randn
- Creates a
Tensor
filled with random values from a normal distribution with mean 0 and variance 1. - randn_
like - randn_
with - relu
- relu2
- relu6
- reshape
- rsqrt
- scatter_
add - sign
- silu
- sin
- softmax
- sqrt
- square
- squeeze
- sub
- Subtracts two
Tensor
objects. - sum
- tanh
- to_
contiguous - to_
device - to_
dtype - transpose
- unsqueeze
- upsample_
nearest1d - upsample_
nearest2d - var
- where_
cond - zeros
- Creates a
Tensor
filled with zeros. - zeros_
like - Creates a
Tensor
filled with zeros, with the same shape, data type and device as anotherTensor
.