-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[TOPI] topi.nn.batch_norm_inference is broken #2470
Comments
I feel |
I see. Are you suggesting it should just be removed? |
Yes, let's do it. would you mind shoot a PR to remove? |
Sure, I can put together a PR removing both |
* rm topi/include/topi/nn/batch_norm.h * rm topi/python/topi/nn/batch_norm.py * rm `#include <top/nn/batch_norm.h>` in topi/src/topi.cc * rm `from .batch_norm import *` in topi/python/topi/nn/__init__.py see issue apache#2470 > `batch_norm_inference` is no longer used as `batch_norm` gets decomposed into several scalar operations in `simplify_inference` pass
pushed #2626 |
The
topi.nn.batch_norm_inference
python implementation appears to be broken.https://github.com/dmlc/tvm/blob/e4b9f986dab8c48ba109a52106565fc4be6b67c4/topi/python/topi/nn/batch_norm.py#L54-L56
Should the offending lines (
mean
andvar
return variables) just be removed here?C++ prototype:
https://github.com/dmlc/tvm/blob/e4b9f986dab8c48ba109a52106565fc4be6b67c4/topi/include/topi/nn/batch_norm.h#L33-L41
For what it's worth,
topi.nn.batch_norm_inference
doesn't currently have a unit test, and I don't see any other references to it in the repository:The text was updated successfully, but these errors were encountered: