ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Check that two networks have matching input specs and variables.

network_1 A network.Network.
network_2 A network.Network.

ValueError if the networks differ in input_spec, variables (number, dtype, or shape).
ValueError if either of the networks has not been built yet (e.g. user must call create_variables).