SKaiNET
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
SKaiNET
skainet-lang-core
/
sk.ainet.lang.nn.dsl
/
DenseImpl
Dense
Impl
class
DenseImpl
<
T
:
DType
,
V
>
(
val
executionContext
:
ExecutionContext
,
inputDimension
:
Int
,
_outputDimension
:
Int
,
id
:
String
,
kClass
:
KClass
<
T
>
)
:
DENSE
<
T
,
V
>
(
source
)
Members
Constructors
Dense
Impl
Link copied to clipboard
constructor
(
executionContext
:
ExecutionContext
,
inputDimension
:
Int
,
_outputDimension
:
Int
,
id
:
String
,
kClass
:
KClass
<
T
>
)
Properties
activation
Link copied to clipboard
open
override
var
activation
:
(
Tensor
<
T
,
V
>
)
->
Tensor
<
T
,
V
>
bias
Shape
Link copied to clipboard
open
override
val
biasShape
:
Shape
execution
Context
Link copied to clipboard
open
override
val
executionContext
:
ExecutionContext
output
Dimension
Link copied to clipboard
val
outputDimension
:
Int
trainable
Link copied to clipboard
open
override
var
trainable
:
Boolean
units
Link copied to clipboard
open
override
var
units
:
Int
weights
Shape
Link copied to clipboard
open
override
val
weightsShape
:
Shape
Functions
bias
Link copied to clipboard
open
override
fun
bias
(
initBlock
:
BiasScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
)
create
Link copied to clipboard
fun
create
(
)
:
List
<
Module
<
T
,
V
>
>
weights
Link copied to clipboard
open
override
fun
weights
(
initBlock
:
WeightsScope
<
T
,
V
>
.
(
Shape
)
->
Tensor
<
T
,
V
>
)