adapt.utils.check_network

adapt.utils.check_network(network, copy=True, name=None, force_copy=False)[source]

Check if the given network is a tensorflow Model. If copy is True, a copy of the network is returned if possible.

Parameters
networktensorflow Model

Network to check.

copyboolean (default=True)

Whether to return a copy of the network or not. If cloning fail, a warning is raised.

namestr (default=”network”)

Name for the network.

force_copyboolean (default=False)

If True, an error is raised if the cloning failed.