You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tf.raw_ops.AvgPool: negative kernel size is not checked at shape inference step #63034
, where kernel_rows is converted to DimensionOrConstant and ends up with assertion failure here:
inlineDimensionOrConstant::DimensionOrConstant(int64_t val) : val(val) {
DCHECK(val >= 0 || val == InferenceContext::kUnknownDim)
<< "Dimension must be non-negative or equal to ""InferenceContext::kUnknownDim but got "
<< val;
}
2024-02-23 22:18:43.783609: F ./tensorflow/core/framework/shape_inference.h:891] Check failed: val >= 0 || val == InferenceContext::kUnknownDim Dimension must be non-negative or equal to InferenceContext::kUnknownDim but got -2
Aborted (core dumped)
Hi @Sehun0819,
Thank you so much for filing this issue! We truly appreciate your support. At the moment, this request is not prioritized and mark it for community contributions. If you would like to contribute on a fix, please feel free to fork the repository and submit a pull request in accordance with the TensorFlow CONTRIBUTION GUIDELINES and link this issue in your PR to ensure the maintainers can easily review and collaborate.
To avoid duplicate work, please leave a comment here if you decide to take it on!
Thank you again for your interest and we look forward to seeing your contributions!
We are closing this issue due to inactivity. If this is still relevant and you would like to work on it, please feel free to reopen the issue or submit a pull request referencing it.
Activity
Venkat6871 commentedon Feb 26, 2024
Hi @Sehun0819 ,
Sorry for the delay, I tried to run your code on Colab using TF v2.15 and nightly. Please find the gist here for reference.
Thank you!
Update shape_inference.h
Kayyuri commentedon Jun 3, 2026
Hi @Sehun0819,
Thank you so much for filing this issue! We truly appreciate your support. At the moment, this request is not prioritized and mark it for community contributions. If you would like to contribute on a fix, please feel free to fork the repository and submit a pull request in accordance with the TensorFlow CONTRIBUTION GUIDELINES and link this issue in your PR to ensure the maintainers can easily review and collaborate.
To avoid duplicate work, please leave a comment here if you decide to take it on!
Thank you again for your interest and we look forward to seeing your contributions!
Venkat6871 commentedon Sep 24, 2026
Hi @Sehun0819 ,
We are closing this issue due to inactivity. If this is still relevant and you would like to work on it, please feel free to reopen the issue or submit a pull request referencing it.
Thank you for your understanding.
google-ml-butler commentedon Sep 24, 2026
Are you satisfied with the resolution of your issue?
Yes
No