@@ -21,7 +21,7 @@ export type Layer =
21
21
/**
22
22
* The configuration for a dense layer.
23
23
*/
24
- export type DenseLayerConfig = {
24
+ export interface DenseLayerConfig {
25
25
/**
26
26
* The type of initialization to use.
27
27
*/
@@ -46,7 +46,7 @@ export type DenseLayerConfig = {
46
46
/**
47
47
* The configuration for a dropout layer.
48
48
*/
49
- export type DropoutLayerConfig = {
49
+ export interface DropoutLayerConfig {
50
50
/**
51
51
* probability of dropping out a value.
52
52
*/
@@ -61,7 +61,7 @@ export type DropoutLayerConfig = {
61
61
/**
62
62
* The configuration for an activation layer.
63
63
*/
64
- export type ActivationLayerConfig = {
64
+ export interface ActivationLayerConfig {
65
65
/**
66
66
* The activation function to use.
67
67
*/
@@ -71,7 +71,7 @@ export type ActivationLayerConfig = {
71
71
/**
72
72
* The configuration for a convolutional layer.
73
73
*/
74
- export type Conv2DLayerConfig = {
74
+ export interface Conv2DLayerConfig {
75
75
/**
76
76
* The type of initialization to use.
77
77
*/
@@ -111,7 +111,7 @@ export type Conv2DLayerConfig = {
111
111
/**
112
112
* The configuration for a convolutional transpose layer.
113
113
*/
114
- export type ConvTranspose2DLayerConfig = {
114
+ export interface ConvTranspose2DLayerConfig {
115
115
/**
116
116
* The type of initialization to use.
117
117
*/
@@ -158,7 +158,7 @@ export enum PoolMode {
158
158
/**
159
159
* The configuration for a pooling layer.
160
160
*/
161
- export type Pool2DLayerConfig = {
161
+ export interface Pool2DLayerConfig {
162
162
/**
163
163
* The optional strides to use.
164
164
*/
@@ -173,7 +173,7 @@ export type Pool2DLayerConfig = {
173
173
/**
174
174
* The configuration for a flatten layer.
175
175
*/
176
- export type FlattenLayerConfig = {
176
+ export interface FlattenLayerConfig {
177
177
/**
178
178
* The size of the layer.
179
179
*/
@@ -183,7 +183,7 @@ export type FlattenLayerConfig = {
183
183
/**
184
184
* The configuration for a batch normalization layer.
185
185
*/
186
- export type BatchNormLayerConfig = {
186
+ export interface BatchNormLayerConfig {
187
187
/**
188
188
* The momentum to use for the batch normalization.
189
189
* Defaults to 0.99.
0 commit comments