SessionMode enum
Values
- Session_Debug → const SessionMode
-
About CallBack, Default Session_Debug runSessionWithCallBack is allowed and can get internal op info
const SessionMode(0) - Session_Release → const SessionMode
-
runSessionWithCallBack is not valid and can't get any info of op in session
const SessionMode(1) - Session_Input_Inside → const SessionMode
-
About input tenosr, Default Session_Input_Inside The input tensor is alloced by session, input data after session resized
const SessionMode(2) - Session_Input_User → const SessionMode
-
The input tensor is alloced by user, set input data before session resize
const SessionMode(3) - Session_Output_Inside → const SessionMode
-
The output tensor depends on session, and can't be separate used
const SessionMode(4) - Session_Output_User → const SessionMode
-
The output tensor can be separated from session
const SessionMode(5) - Session_Resize_Direct → const SessionMode
-
Try Resize Session when create Session or not, default direct:
const SessionMode(6) - Session_Resize_Defer → const SessionMode
-
const SessionMode(7) - Session_Backend_Fix → const SessionMode
-
Determine the Execution's forward type is determine by user or auto determine
const SessionMode(8) - Session_Backend_Auto → const SessionMode
-
const SessionMode(9) - Session_Memory_Collect → const SessionMode
-
Determine static memory whether recyle in resizeSession or just cache the memory Recycle static memory when session resize in case memory explosion
const SessionMode(10) - Session_Memory_Cache → const SessionMode
-
Cache the static memory for next forward usage
const SessionMode(11) - Session_Codegen_Disable → const SessionMode
-
Determine whether use codegen function Disable codegen in case extra build codegen cost
const SessionMode(12) - Session_Codegen_Enable → const SessionMode
-
Enable codegen
const SessionMode(13) - Session_Resize_Check → const SessionMode
-
Dynamic Reisze Optimization Open Trace for resize
const SessionMode(14) - Session_Resize_Fix → const SessionMode
-
Apply Resize Optimization
const SessionMode(15) - Module_Forward_Separate → const SessionMode
-
Set for Module's traceOrOptimize API. Module_Forward_Seperate: when inputs is not empty , Module's onForward will only infer shape and alloc memory. when inputs is empty , Module's onForward will only runSession to compute content. Default is Module_Forward_Combine
const SessionMode(16) - Module_Forward_Combine → const SessionMode
-
const SessionMode(17)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int value) → SessionMode
Constants
-
values
→ const List<
SessionMode> - A constant List of the values in this enum, in order of their declaration.