SKaiNET
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
SKaiNET
skainet-lang-core
/
sk.ainet.context
/
ExecutionContext
Execution
Context
interface
ExecutionContext
(
source
)
Inheritors
DefaultDataExecutionContext
PhaseOverridingExecutionContext
TrainingExecutionContext
NeuralNetworkExecutionContext
Members
Properties
execution
Stats
Link copied to clipboard
abstract
val
executionStats
:
ExecutionStats
hooks
Link copied to clipboard
open
val
hooks
:
ForwardHooks
?
in
Training
Link copied to clipboard
open
val
inTraining
:
Boolean
memory
Info
Link copied to clipboard
abstract
val
memoryInfo
:
MemoryInfo
observers
Link copied to clipboard
abstract
val
observers
:
ExecutionObserverRegistry
ops
Link copied to clipboard
abstract
val
ops
:
TensorOps
phase
Link copied to clipboard
abstract
val
phase
:
Phase
tensor
Data
Factory
Link copied to clipboard
abstract
val
tensorDataFactory
:
TensorDataFactory
Functions
from
Byte
Array
Link copied to clipboard
open
fun
<
T
:
DType
,
V
>
fromByteArray
(
shape
:
Shape
,
dtype
:
KClass
<
T
>
,
data
:
ByteArray
)
:
Tensor
<
T
,
V
>
from
Data
Link copied to clipboard
open
fun
<
T
:
DType
,
V
>
fromData
(
data
:
TensorData
<
T
,
V
>
,
dtype
:
KClass
<
T
>
)
:
Tensor
<
T
,
V
>
from
Float
Array
Link copied to clipboard
open
fun
<
T
:
DType
,
V
>
fromFloatArray
(
shape
:
Shape
,
dtype
:
KClass
<
T
>
,
data
:
FloatArray
)
:
Tensor
<
T
,
V
>
from
Int
Array
Link copied to clipboard
open
fun
<
T
:
DType
,
V
>
fromIntArray
(
shape
:
Shape
,
dtype
:
KClass
<
T
>
,
data
:
IntArray
)
:
Tensor
<
T
,
V
>
full
Link copied to clipboard
open
fun
<
T
:
DType
,
V
>
full
(
shape
:
Shape
,
dtype
:
KClass
<
T
>
,
value
:
Number
)
:
Tensor
<
T
,
V
>
ones
Link copied to clipboard
open
fun
<
T
:
DType
,
V
>
ones
(
shape
:
Shape
,
dtype
:
KClass
<
T
>
)
:
Tensor
<
T
,
V
>
register
Observer
Link copied to clipboard
open
fun
registerObserver
(
observer
:
ExecutionObserver
)
unregister
Observer
Link copied to clipboard
open
fun
unregisterObserver
(
observer
:
ExecutionObserver
)
zeros
Link copied to clipboard
open
fun
<
T
:
DType
,
V
>
zeros
(
shape
:
Shape
,
dtype
:
KClass
<
T
>
)
:
Tensor
<
T
,
V
>