(self)
| 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): |
no test coverage detected