Assertion fails when torch.mean is called with dtype argument.
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 850
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 10
Description
## 🐞Describing the bug
- Make sure to only create an issue here for bugs in the coremltools Python package. If this is a bug with the Core ML Framework or Xcode, please submit your bug here: https://developer.apple.com/bug-reporting/
- Provide a clear and consise description of the bug.
Assertion fails when torch.mean is called with dtype argument.
https://github.com/apple/coremltools/blob/0b713d23ba86fa6cdb23e8b24e9e65e0f8c35807/coremltools/converters/mil/frontend/torch/ops.py#L1615
## Stack Trace
- If applicable, please paste the complete stack trace.
## To Reproduce
- Please add a minimal code example that can reproduce the error when running it.
```
# Paste Python code snippet here, complete with any required import statements.
```
- If the model conversion succeeds, but there is a numerical mismatch in predictions, please include the code used for comparisons.
## System environment (please complete the following information):
- coremltools version: 7.1
- OS (e.g. MacOS version or Linux type): macOS Sonoma 14.3
- Any other relevant version information (e.g. PyTorch or TensorFlow version):
## Additional context
- Add anything else about the problem here that you want to share.
Contributor guide
Assessment
This issue has not been assessed yet.