Skip to content

Assertion fails when torch.mean is called with dtype argument. #2124

@y-ich

Description

@y-ich

🐞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.

assert len(inputs) <= 3 or inputs[3] is None

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.

Metadata

Metadata

Assignees

Labels

PyTorch (traced)bugUnexpected behaviour that should be corrected (type)missing layer typeUnable to convert a layer type from the relevant frameworktriagedReviewed and examined, release as been assigned if applicable (status)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions