parameters: (revived_obj)
docstring: Sets attributes recorded in the metadata.
docstring_summary: Sets attributes recorded in the metadata.
docstring_tokens: Sets attributes recorded in the metadata .
function: def _set_network_attributes_from_metadata(revived_obj):
    """Sets attributes recorded in the metadata."""
    with utils.no_automatic_dependency_tracking_scope(revived_obj):
      # pylint:disable=protected-access
      metadata = revived_obj._serialized_attributes['metadata']
      if metadata.get('dtype') is not None:
        revived_obj._set_dtype_policy(metadata['dtype'])
      revived_obj._trainable = metadata['trainable']
function_tokens: def _set_network_attributes_from_metadata ( revived_obj ) : with utils . no_automatic_dependency_tracking_scope ( revived_obj ) : # pylint:disable=protected-access metadata = revived_obj . _serialized_attributes [ 'metadata' ] if metadata . get ( 'dtype' ) is not None : revived_obj . _set_dtype_policy ( metadata [ 'dtype' ] ) revived_obj . _trainable = metadata [ 'trainable' ]