get_weights {keras3} | R Documentation |
Layer/Model weights as R arrays
Description
Layer/Model weights as R arrays
Usage
get_weights(object, trainable = NA)
set_weights(object, weights)
Arguments
object |
Layer or model object |
trainable |
if |
weights |
Weights as R array |
Value
A list of R arrays.
Note
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
See Also
Other layer methods:
count_params()
get_config()
quantize_weights()
reset_state()
[Package keras3 version 1.1.0 Index]