Function to define a torch layer similar to a tf dense layer
layer_dense_torch(
input_shape,
units = 1L,
name,
trainable = TRUE,
kernel_initializer = "glorot_uniform",
use_bias = FALSE,
kernel_regularizer = NULL,
...
)
torch layer
integer; number of input units
integer; number of output units
string; string defining the layer's name
logical; whether layer is trainable
initializer; for coefficients
logical; wether bias is used (default no)
regularizer; for coefficients
arguments used in choose_kernel_initializer_torch