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
/
DataContextDsl
Data
Context
Dsl
interface
DataContextDsl
:
ContextDslItem
(
source
)
Inheritors
TypedDataContextDsl
DataDefinitionContextDslImpl
Members
Members & Extensions
Properties
execution
Context
Link copied to clipboard
abstract
val
executionContext
:
ExecutionContext
Functions
matrix
Link copied to clipboard
abstract
fun
<
T
:
DType
,
V
>
matrix
(
rows
:
Long
,
columns
:
Long
,
dtype
:
KClass
<
T
>
,
content
:
TensorCreationScope
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
matrix
Link copied to clipboard
inline
fun
<
T
:
DType
,
V
>
DataContextDsl
.
matrix
(
rows
:
Long
,
columns
:
Long
,
noinline
content
:
TensorCreationScope
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
scalar
Link copied to clipboard
abstract
fun
<
T
:
DType
,
V
>
scalar
(
value
:
V
,
dtype
:
KClass
<
T
>
)
:
Tensor
<
T
,
V
>
scalar
Link copied to clipboard
inline
fun
<
T
:
DType
,
V
>
DataContextDsl
.
scalar
(
value
:
V
)
:
Tensor
<
T
,
V
>
tensor
Link copied to clipboard
abstract
fun
<
T
:
DType
,
V
>
tensor
(
dtype
:
KClass
<
T
>
,
content
:
TensorFactoryContext
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
abstract
fun
<
T
:
DType
,
V
>
tensor
(
dtype
:
KClass
<
T
>
,
name
:
String
,
content
:
TensorFactoryContext
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
tensor
Link copied to clipboard
inline
fun
<
T
:
DType
,
V
>
DataContextDsl
.
tensor
(
noinline
content
:
TensorFactoryContext
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
inline
fun
<
T
:
DType
,
V
>
DataContextDsl
.
tensor
(
name
:
String
,
noinline
content
:
TensorFactoryContext
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
vector
Link copied to clipboard
abstract
fun
<
T
:
DType
,
V
>
vector
(
length
:
Long
,
dtype
:
KClass
<
T
>
,
content
:
TensorCreationScope
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>
vector
Link copied to clipboard
inline
fun
<
T
:
DType
,
V
>
DataContextDsl
.
vector
(
length
:
Long
,
noinline
content
:
TensorCreationScope
<
T
,
V
>
.
(
)
->
Tensor
<
T
,
V
>
)
:
Tensor
<
T
,
V
>