Skip to content

Add testdata for Reduce mean#634

Merged
alalek merged 3 commits intoopencv:3.4from
l-bat:reduce_mean
Jul 19, 2019
Merged

Add testdata for Reduce mean#634
alalek merged 3 commits intoopencv:3.4from
l-bat:reduce_mean

Conversation

@l-bat
Copy link
Copy Markdown
Contributor

@l-bat l-bat commented Jul 12, 2019

No description provided.


input = np.random.rand(1, 3, 4, 2, 3)
output = np.mean(input, axis=(3, 4), keepdims=True)
save_onnx_data_and_model(input, output, 'reduce_mean3d', 'ReduceMean', axes=(3, 4), keepdims=True)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce_mean5d?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake, let's keep it 3d.

@alalek alalek merged commit 57d6f07 into opencv:3.4 Jul 19, 2019
@alalek alalek mentioned this pull request Jul 21, 2019
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

Successfully merging this pull request may close these issues.

3 participants