Skip to content

Commit

Permalink
Added input_shape param when testing layers
Browse files Browse the repository at this point in the history
  • Loading branch information
Frightera authored Aug 8, 2021
1 parent 75dae2d commit 63501a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ def _testLayerInSequential(self, layer_class): # pylint: disable=invalid-name
outputs = self.maybe_transpose_tensor(outputs)

net = tf.keras.Sequential([
layer_class(filters=2, kernel_size=3, data_format=self.data_format),
layer_class(filters=2, kernel_size=3, data_format=self.data_format,
input_shape = inputs.shape.as_list()[1:]),
layer_class(filters=2, kernel_size=1, data_format=self.data_format)])

net.compile(loss='mse', optimizer='adam')
Expand Down

0 comments on commit 63501a0

Please sign in to comment.