View source on GitHub |
Checks that there are no shared trainable variables in the two networks.
tf_agents.utils.common.check_no_shared_variables(
network_1, network_2
)
Args | |
---|---|
network_1
|
A network.Network. |
network_2
|
A network.Network. |
Raises | |
---|---|
ValueError
|
if there are any common trainable variables. |
ValueError
|
if one of the networks has not yet been built
(e.g. user must call create_variables ).
|