Layer/Model weights as R arrays
get_weights(object, trainable = NA)set_weights(object, weights)
A list of R arrays.
Layer or model object
if NA
(the default), all weights are returned. If TRUE
,
only weights of trainable variables are returned. If FALSE
, only weights
of non-trainable variables are returned.
Weights as R array
Other layer methods:
count_params()
get_config()
quantize_weights()
reset_state()