MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / get_collection

Method get_collection

tensorpack/tfutils/tower.py:456–467  ·  view source on GitHub ↗

See :meth:`BaseTowerContext.get_collection_in_tower`. Args: key (str): the key of the collection name: deprecated

(self, key=None, name=None)

Source from the content-addressed store, hash-verified

454 return [self.get_variable(name) for name in names]
455
456 def get_collection(self, key=None, name=None):
457 """
458 See :meth:`BaseTowerContext.get_collection_in_tower`.
459
460 Args:
461 key (str): the key of the collection
462 name: deprecated
463 """
464 if name is not None:
465 logger.warn("TowerTensorHandle.get_collection(name=..) was renamed to (key=..) !")
466 key = name
467 return self._ctx.get_collection_in_tower(key)
468
469 @property
470 def inputs(self):

Callers 15

_setup_graphMethod · 0.80
_setup_graphMethod · 0.80
_setup_graphMethod · 0.80
_setup_graphMethod · 0.80
fMethod · 0.80
add_param_summaryFunction · 0.80
dump_session_paramsFunction · 0.80
_run_initMethod · 0.80
describe_trainable_varsFunction · 0.80
backup_collectionFunction · 0.80

Calls 1

Tested by

no test coverage detected