View source: R/layer-methods.R
get_weights | R Documentation |
Layer/Model weights as R arrays
get_weights(object, trainable = NA)
set_weights(object, weights)
object |
Layer or model object |
trainable |
if |
weights |
Weights as R array |
A list of R arrays.
You can access the Layer/Model as KerasVariables
(which are also
backend-native tensors like tf.Variable
) at object$weights
,
object$trainable_weights
, or object$non_trainable_weights
Other layer methods:
count_params()
get_config()
quantize_weights()
reset_state()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.