MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _channel_axis

Method _channel_axis

tensorflow/contrib/layers/python/layers/layers.py:1980–1985  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1978 self.input_spec = input_spec.InputSpec(min_ndim=3, max_ndim=5)
1979
1980 def _channel_axis(self):
1981 try:
1982 return {'channels_first': 1, 'channels_last': -1}[self.data_format]
1983 except KeyError:
1984 raise ValueError('Unsupported `data_format` for GDN layer: {}.'.format(
1985 self.data_format))
1986
1987 @staticmethod
1988 def _lower_bound(inputs, bound, name=None):

Callers 3

__init__Method · 0.95
buildMethod · 0.95
compute_output_shapeMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected