@Namespace(value="c10") public static enum torch.EventFlag extends Enum<torch.EventFlag>
| Enum Constant and Description |
|---|
BACKEND_DEFAULT |
INVALID |
PYTORCH_DEFAULT |
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
torch.EventFlag |
intern() |
String |
toString() |
static torch.EventFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static torch.EventFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final torch.EventFlag PYTORCH_DEFAULT
public static final torch.EventFlag BACKEND_DEFAULT
public static final torch.EventFlag INVALID
public static torch.EventFlag[] values()
for (torch.EventFlag c : torch.EventFlag.values()) System.out.println(c);
public static torch.EventFlag 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.EventFlag intern()
public String toString()
toString in class Enum<torch.EventFlag>Copyright © 2025. All rights reserved.