SKaiNET
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
SKaiNET
skainet-lang-core
/
sk.ainet.lang.tensor.dsl
/
DataDefinitionContextDslImpl
Data
Definition
Context
Dsl
Impl
class
DataDefinitionContextDslImpl
(
val
executionContext
:
ExecutionContext
)
:
DataContextDsl
(
source
)
Members
Constructors
Data
Definition
Context
Dsl
Impl
Link copied to clipboard
constructor
(
executionContext
:
ExecutionContext
)
Properties
created
Tensors
Count
Link copied to clipboard
var
createdTensorsCount
:
Int
execution
Context
Link copied to clipboard
open
override
val
executionContext
:
ExecutionContext
tensors
By
Name
Link copied to clipboard
val
tensorsByName
:
LinkedHashMap
<
String
,
Tensor
<
*
,
*
>
>
Functions
matrix
Link copied to clipboard
open
override
fun
<
T
:
DType
,
V
>
matrix
(
rows
:
Long
,
columns
:
Long
,
dtype
:
KClass
<
T
>
,
content
:
TensorCreationScope
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
scalar
Link copied to clipboard
open
override
fun
<
T
:
DType
,
V
>
scalar
(
value
:
V
,
dtype
:
KClass
<
T
>
)
:
Tensor
<
T
,
V
>
tensor
Link copied to clipboard
open
override
fun
<
T
:
DType
,
V
>
tensor
(
dtype
:
KClass
<
T
>
,
content
:
TensorFactoryContext
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
open
override
fun
<
T
:
DType
,
V
>
tensor
(
dtype
:
KClass
<
T
>
,
name
:
String
,
content
:
TensorFactoryContext
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
vector
Link copied to clipboard
open
override
fun
<
T
:
DType
,
V
>
vector
(
length
:
Long
,
dtype
:
KClass
<
T
>
,
content
:
TensorCreationScope
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>