Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAX_POOLING crash, when pooling_window_shape contains 0 #3886

Open
cheyennee opened this issue Dec 9, 2023 · 1 comment
Open

MAX_POOLING crash, when pooling_window_shape contains 0 #3886

cheyennee opened this issue Dec 9, 2023 · 1 comment

Comments

@cheyennee
Copy link

In following code, pooling_window_shape is a tuple with 0, C.pooling crash.

repo code:

img = np.reshape(np.arange(16, dtype=np.float32), [1, 4, 4])
x = C.input_variable(img.shape)
layer = C.pooling(operand=x, pooling_type=C.MAX_POOLING, pooling_window_shape=(2,0), strides=(1), ceil_out_dim=True, include_pad=True,
                  auto_padding=[True]).eval({x : [img]})
print(layer)
@cheyennee cheyennee changed the title pooling crash, when pooling_window_shape contains 0 MAX_POOLING crash, when pooling_window_shape contains 0 Dec 9, 2023
@cheyennee
Copy link
Author

Same problem can be found in C.AVG_POOLING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant