Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

MAX_POOLING crash, when pooling_window_shape contains 0 #3886

@cheyennee

Description

@cheyennee

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions