@Namespace(value="at::indexing") public static enum torch.TensorIndexType extends Enum<torch.TensorIndexType>
Enum Constant and Description |
---|
Boolean |
Ellipsis |
None |
Slice |
SymInt |
Tensor |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
torch.TensorIndexType |
intern() |
String |
toString() |
static torch.TensorIndexType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.TensorIndexType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.TensorIndexType None
public static final torch.TensorIndexType Ellipsis
public static final torch.TensorIndexType SymInt
public static final torch.TensorIndexType Boolean
public static final torch.TensorIndexType Slice
public static final torch.TensorIndexType Tensor
public static torch.TensorIndexType[] values()
for (torch.TensorIndexType c : torch.TensorIndexType.values()) System.out.println(c);
public static torch.TensorIndexType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic torch.TensorIndexType intern()
public String toString()
toString
in class Enum<torch.TensorIndexType>
Copyright © 2024. All rights reserved.