Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit d730456

Browse files
author
DarrenZhang01
committed
Remove the unused lines and unused moveaxis.
1 parent 7df8a23 commit d730456

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tf_helpers/stax.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,9 @@ def init_fun(rng, input_shape):
148148
strides, padding)
149149
return tfnp.zeros(out_shape), ()
150150
def apply_fun(params, inputs, **kwargs):
151-
inputs = np.moveaxis(inputs, (batch_dim, channel_dim), \
152-
(0, dim + 1))
153151
output = lax.reduce_window(inputs, init_val, reducer, window_shape,
154152
strides, padding)
155153
return rescale(out, inputs, spec) if rescale else out
156-
# return output
157-
return tfnp.array(output)
158154
return init_fun, apply_fun
159155
return PoolingLayer
160156
MaxPool = _pooling_layer(tfnp.max, -tfnp.inf)

0 commit comments

Comments
 (0)