public enum AiliaMemoryMode extends java.lang.Enum<AiliaMemoryMode>
Enum Constant and Description |
---|
NO_OPTIMIZATION
Do not release the intermediate buffer
|
OPTIMAIZE_DEFAULT |
REDUCE_CONSTANT
Releases the intermediate buffer that is a constant such as weight
|
REDUCE_CONSTANT_WITH_FILE_MAPPED
Use memory mapped file due to reduce constant intermediate blobs.
|
REDUCE_CONSTANT_WITH_INPUT_INITIALIZER
Disable the input specified initializer and release the intermediate buffer that becomes a constant such as weight.
|
REDUCE_INTERSTAGE
Release intermediate buffer during inference
|
REUSE_INTERSTAGE
Infer by sharing the intermediate buffer.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static AiliaMemoryMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AiliaMemoryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AiliaMemoryMode NO_OPTIMIZATION
public static final AiliaMemoryMode REDUCE_CONSTANT
public static final AiliaMemoryMode REDUCE_CONSTANT_WITH_INPUT_INITIALIZER
public static final AiliaMemoryMode REDUCE_INTERSTAGE
public static final AiliaMemoryMode REUSE_INTERSTAGE
REDUCE_INTERSTAGE
, the sharable intermediate buffer is not opened.public static final AiliaMemoryMode REDUCE_CONSTANT_WITH_FILE_MAPPED
public static final AiliaMemoryMode OPTIMAIZE_DEFAULT
public static AiliaMemoryMode[] values()
for (AiliaMemoryMode c : AiliaMemoryMode.values()) System.out.println(c);
public static AiliaMemoryMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()