mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
Layer2Image: fix
This commit is contained in:
parent
6a29105f56
commit
f994d449f1
1 changed files with 2 additions and 3 deletions
|
@ -19,8 +19,7 @@ class LayerStack2Image(tf.keras.layers.Layer):
|
||||||
return config
|
return config
|
||||||
|
|
||||||
def call(self, input_thing, **kwargs):
|
def call(self, input_thing, **kwargs):
|
||||||
result = tf.stack([ input_thing for i in range(self.param_target_width) ], axis=-1)
|
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=-1)
|
result = tf.stack([ result for i in range(self.param_target_height) ], axis=-2)
|
||||||
result = tf.stack([ result ], axis=-1) # channel dimension
|
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Reference in a new issue