Package | Description |
---|---|
org.bytedeco.pytorch | |
org.bytedeco.pytorch.global |
Modifier and Type | Method and Description |
---|---|
TypeMeta |
TensorImpl.dtype() |
TypeMeta |
TensorBase.dtype()
Returns a
Tensor 's dtype (TypeMeta ). |
TypeMeta |
TensorOptions.dtype()
Returns the dtype of the
TensorOptions . |
static TypeMeta |
TypeMeta.fromScalarType(torch.ScalarType scalar_type)
convert ScalarType enum values to TypeMeta handles
|
TypeMeta |
TypeMetaOptional.get() |
TypeMeta |
TypeMeta.getPointer(long i) |
TypeMeta |
Blob.meta()
Returns the meta info of the blob.
|
TypeMeta |
TypeMeta.position(long position) |
TypeMeta |
TypeMeta.put(torch.ScalarType scalar_type) |
TypeMeta |
TypeMeta.put(TypeMeta src)
Assignment operators.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TypeMeta.equals(TypeMeta rhs) |
TypeMetaOptional |
TypeMetaOptional.put(TypeMeta value) |
TypeMeta |
TypeMeta.put(TypeMeta src)
Assignment operators.
|
Pointer |
TensorImpl.raw_mutable_data(TypeMeta meta)
Returns a mutable raw pointer of the underlying storage.
|
void |
TensorImpl.set_storage_and_dtype(Storage storage,
TypeMeta data_type) |
Pointer |
Blob.ShareExternal(Pointer allocated,
TypeMeta meta)
Sets the underlying object to the allocated one, but does not take over
the ownership of the passed in pointer.
|
void |
TensorImpl.ShareExternalPointer(DataPtr data_ptr,
TypeMeta data_type,
long size_bytes) |
Tensor |
Tensor.to(Device device,
TypeMeta type_meta) |
Tensor |
Tensor.to(Device device,
TypeMeta type_meta,
boolean non_blocking,
boolean copy) |
Tensor |
Tensor.to(TypeMeta type_meta) |
Tensor |
Tensor.to(TypeMeta type_meta,
boolean non_blocking,
boolean copy) |
Constructor and Description |
---|
NestedTensorImpl(Storage storage,
DispatchKeySet key_set,
TypeMeta data_type,
Tensor nested_sizes,
Tensor nested_strides,
Tensor storage_offsets) |
TensorImpl(DispatchKeySet arg0,
TypeMeta data_type,
DeviceOptional device_opt)
Construct a 1-dim 0 size tensor that doesn't have a storage.
|
TensorImpl(int arg0,
Storage storage,
DispatchKeySet arg2,
TypeMeta data_type) |
TensorImpl(short dispatch_key,
TypeMeta data_type,
DeviceOptional device_opt) |
TensorImpl(Storage storage,
DispatchKeySet arg1,
TypeMeta data_type)
Construct a 1-dim 0-size tensor backed by the given storage.
|
TensorImpl(Storage storage,
short dispatch_key,
TypeMeta data_type) |
TensorImpl(Storage storage,
torch.DispatchKey dispatch_key,
TypeMeta data_type) |
TensorImpl(TensorImpl.ImplType arg0,
Storage storage,
DispatchKeySet arg2,
TypeMeta data_type) |
TensorImpl(torch.DispatchKey dispatch_key,
TypeMeta data_type,
DeviceOptional device_opt) |
TensorOptions(TypeMeta dtype)
Constructs a
TensorOptions object with the given dtype. |
TypeMeta(TypeMeta src)
Copy constructor.
|
TypeMetaOptional(TypeMeta value) |
Modifier and Type | Method and Description |
---|---|
static TypeMeta |
torch.dtype_or_default(TypeMetaOptional dtype) |
static TypeMeta |
torch.get_default_complex_dtype() |
static TypeMeta |
torch.get_default_dtype() |
static TypeMeta |
torch.scalarTypeToTypeMeta(torch.ScalarType scalar_type)
convert ScalarType enum values to TypeMeta handles
|
Modifier and Type | Method and Description |
---|---|
static TensorOptions |
torch.dtype(TypeMeta dtype)
Convenience function that returns a
TensorOptions object with the dtype
set to the given one. |
static boolean |
torch.equals(torch.ScalarType t,
TypeMeta m)
convenience: equality across TypeMeta/ScalarType conversion
|
static boolean |
torch.equals(TypeMeta m,
torch.ScalarType t) |
static boolean |
torch.equals(TypeMeta lhs,
TypeMeta rhs) |
static boolean |
torch.notEquals(torch.ScalarType t,
TypeMeta m) |
static boolean |
torch.notEquals(TypeMeta m,
torch.ScalarType t) |
static boolean |
torch.notEquals(TypeMeta lhs,
TypeMeta rhs) |
static void |
torch.set_default_dtype(TypeMeta dtype) |
static Pointer |
torch.shiftLeft(Pointer stream,
TypeMeta typeMeta) |
static torch.ScalarType |
torch.typeMetaToScalarType(TypeMeta dtype)
convert TypeMeta handles to ScalarType enum values
|
Copyright © 2024. All rights reserved.