Package | Description |
---|---|
org.bytedeco.pytorch | |
org.bytedeco.pytorch.global |
Modifier and Type | Class and Description |
---|---|
class |
Tensor |
Modifier and Type | Method and Description |
---|---|
TensorBase |
TensorBase._base()
Returns the
Variable that this Variable is a view of. |
TensorBase |
TensorBaseMaybeOwned.access() |
TensorBase |
VariableHooksInterface.base(TensorBase arg0) |
TensorBase |
TensorTensorRefHook.call(TensorBase a) |
TensorBase |
TensorTensorHook.call(TensorBase a) |
TensorBase |
TensorBase.contiguous() |
TensorBase |
TensorBase.contiguous(byte memory_format) |
TensorBase |
TensorBase.contiguous(torch.MemoryFormat memory_format) |
TensorBase |
TensorBase.data() |
TensorBase |
VariableHooksInterface.data(TensorBase arg0) |
TensorBase |
TensorBase.fill_(Scalar scalar)
Should be used if *this can reasonably be expected to be contiguous and
performance is important.
|
TensorBase |
TensorBase.getPointer(long i) |
TensorBase |
TensorIteratorBase.input_base() |
TensorBase |
TensorIteratorBase.input_base(long arg) |
TensorBase |
TensorBaseMaybeOwned.multiply() |
TensorBase |
OperandInfo.original_tensor_base() |
TensorBase |
TensorIteratorBase.output_base() |
TensorBase |
TensorIteratorBase.output_base(long arg) |
TensorBase |
TensorBase.position(long position) |
TensorBase |
TensorBase.put(TensorBase x) |
TensorBase |
TensorBase.requires_grad_() |
TensorBase |
TensorBase.requires_grad_(boolean _requires_grad) |
TensorBase |
TensorBase.set_requires_grad(boolean requires_grad)
\fn bool is_leaf() const;
All Tensors that have
requires_grad() which is false will be leaf Tensors by convention. |
TensorBase |
OperandInfo.tensor_base() |
TensorBase |
TensorIteratorBase.tensor_base(long arg) |
TensorBase |
TensorBase.tensor_data()
NOTE: This is similar to the legacy
.data() function on Variable , and is intended
to be used from functions that need to access the Variable 's equivalent Tensor
(i.e. |
TensorBase |
VariableHooksInterface.tensor_data(TensorBase arg0) |
TensorBase |
TensorBase.to() |
TensorBase |
TensorBase.to(TensorOptions options,
boolean non_blocking,
boolean copy,
MemoryFormatOptional memory_format) |
TensorBase |
TensorBase.variable_data()
NOTE:
var.variable_data() in C++ has the same semantics as tensor.data
in Python, which create a new Variable that shares the same storage and
tensor metadata with the original Variable , but with a completely new
autograd history. |
TensorBase |
VariableHooksInterface.variable_data(TensorBase arg0) |
static TensorBase |
TensorBase.wrap_tensor_impl(TensorImpl tensor_impl) |
TensorBase |
TensorBase.zero_() |
Constructor and Description |
---|
IValue(TensorBase t) |
Tensor(TensorBase base) |
TensorBase(TensorBase arg0) |
TensorGeometry(TensorBase t) |
Copyright © 2025. All rights reserved.