Package | Description |
---|---|
org.bytedeco.pytorch | |
org.bytedeco.pytorch.global |
Modifier and Type | Method and Description |
---|---|
TypeMetaOptional |
TensorOptions.dtype_opt()
Returns the dtype of the
TensorOptions , or c10::nullopt if
device is not specified. |
TypeMetaOptional |
TypeMetaOptional.put(TypeMeta value) |
TypeMetaOptional |
TypeMetaOptional.put(TypeMetaOptional x) |
Modifier and Type | Method and Description |
---|---|
TensorOptions |
TensorOptions.dtype(TypeMetaOptional dtype)
Return a copy of
TensorOptions with dtype set to the given one. |
TypeMetaOptional |
TypeMetaOptional.put(TypeMetaOptional x) |
Modifier and Type | Method and Description |
---|---|
static TypeMeta |
torch.dtype_or_default(TypeMetaOptional dtype) |
static ScalarTypeOptional |
torch.optTypeMetaToScalarType(TypeMetaOptional type_meta)
typeMetaToScalarType(), lifted to optional
|
Copyright © 2024. All rights reserved.