Layer2Image: fix

This commit is contained in:
Starbeamrainbowlabs 2022-10-25 21:32:17 +01:00
parent 6a29105f56
commit f994d449f1
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -19,8 +19,7 @@ class LayerStack2Image(tf.keras.layers.Layer):
return config
def call(self, input_thing, **kwargs):
result = tf.stack([ input_thing for i in range(self.param_target_width) ], axis=-1)
result = tf.stack([ result for i in range(self.param_target_height) ], axis=-1)
result = tf.stack([ result ], axis=-1) # channel dimension
result = tf.stack([ input_thing for i in range(self.param_target_width) ], axis=-2)
result = tf.stack([ result for i in range(self.param_target_height) ], axis=-2)
return result