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

Unsupported derivative reduce_window #221

Open
wsmoses opened this issue Jan 5, 2025 · 1 comment
Open

Unsupported derivative reduce_window #221

wsmoses opened this issue Jan 5, 2025 · 1 comment

Comments

@wsmoses
Copy link
Member

wsmoses commented Jan 5, 2025

error: Unsupported reduce window rev autodiff(1): 
%8 = "stablehlo.reduce_window"(%7, %2) <{padding = dense<[[2, 2], [2, 2], [0, 0], [0, 0]]> : tensor<4x2xi64>, window_dilations = array<i64: 1, 1, 1, 1>, window_dimensions = array<i64: 5, 5, 1, 1>, window_strides = array<i64: 5, 5, 1, 1>}> ({
^bb0(%arg5: tensor<f32>, %arg6: tensor<f32>):
  %13 = "stablehlo.add"(%arg5, %arg6) : (tensor<f32>, tensor<f32>) -> tensor<f32>
  "stablehlo.return"(%13) : (tensor<f32>) -> ()
}) : (tensor<5x5x2x2xf32>, tensor<f32>) -> tensor<1x1x2x2xf32>

@Pangoraw mind giving it a try?

@Pangoraw
Copy link
Collaborator

Pangoraw commented Jan 6, 2025

That's from meanpooling, I'll give it a go. In the worst case, I think we can consider this as a convolution with a kernel filled with 1s.

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

2 participants