@Namespace(value="c10") public static enum torch.ScalarType extends Enum<torch.ScalarType>
Enum Constant and Description |
---|
BFloat16 |
Bits16 |
Bits1x8 |
Bits2x4 |
Bits4x2 |
Bits8 |
Bool |
Byte |
Char |
ComplexDouble |
ComplexFloat |
ComplexHalf |
Double |
Float |
Float8_e4m3fn |
Float8_e4m3fnuz |
Float8_e5m2 |
Float8_e5m2fnuz |
Half |
Int |
Long |
NumOptions |
QInt32 |
QInt8 |
QUInt2x4 |
QUInt4x2 |
QUInt8 |
Short |
UInt1 |
UInt16 |
UInt2 |
UInt3 |
UInt32 |
UInt4 |
UInt5 |
UInt6 |
UInt64 |
UInt7 |
Undefined |
Modifier and Type | Field and Description |
---|---|
byte |
value |
Modifier and Type | Method and Description |
---|---|
torch.ScalarType |
intern() |
String |
toString() |
static torch.ScalarType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.ScalarType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.ScalarType Byte
public static final torch.ScalarType Char
public static final torch.ScalarType Short
public static final torch.ScalarType Int
public static final torch.ScalarType Long
public static final torch.ScalarType Half
public static final torch.ScalarType Float
public static final torch.ScalarType Double
public static final torch.ScalarType ComplexHalf
public static final torch.ScalarType ComplexFloat
public static final torch.ScalarType ComplexDouble
public static final torch.ScalarType Bool
public static final torch.ScalarType QInt8
public static final torch.ScalarType QUInt8
public static final torch.ScalarType QInt32
public static final torch.ScalarType BFloat16
public static final torch.ScalarType QUInt4x2
public static final torch.ScalarType QUInt2x4
public static final torch.ScalarType Bits1x8
public static final torch.ScalarType Bits2x4
public static final torch.ScalarType Bits4x2
public static final torch.ScalarType Bits8
public static final torch.ScalarType Bits16
public static final torch.ScalarType Float8_e5m2
public static final torch.ScalarType Float8_e4m3fn
public static final torch.ScalarType Float8_e5m2fnuz
public static final torch.ScalarType Float8_e4m3fnuz
public static final torch.ScalarType UInt16
public static final torch.ScalarType UInt32
public static final torch.ScalarType UInt64
public static final torch.ScalarType UInt1
public static final torch.ScalarType UInt2
public static final torch.ScalarType UInt3
public static final torch.ScalarType UInt4
public static final torch.ScalarType UInt5
public static final torch.ScalarType UInt6
public static final torch.ScalarType UInt7
public static final torch.ScalarType Undefined
public static final torch.ScalarType NumOptions
public static torch.ScalarType[] values()
for (torch.ScalarType c : torch.ScalarType.values()) System.out.println(c);
public static torch.ScalarType 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.ScalarType intern()
public String toString()
toString
in class Enum<torch.ScalarType>
Copyright © 2024. All rights reserved.