Ejemplo n.º 1
0
 def get_output_shape(self, input_shape=(224, 224, 3)):
     """ Same as DepthwiseConv """
     assert self._data_format == 'channels_last'
     assert self._padding == 'same'
     shape = (ceil_div(input_shape[0], self._strides[0]),
              ceil_div(input_shape[1], self._strides[1]), input_shape[2])
     return tuple(int(d) for d in shape)
Ejemplo n.º 2
0
 def get_output_shape(self, input_shape=(224, 224, 3)):
     assert self.data_format == 'channels_last'
     assert self.padding == 'same'
     shape = (ceil_div(input_shape[0], self.strides[0]), ceil_div(input_shape[1], self.strides[1]), self.filters)
     return tuple(int(d) for d in shape)