-
Notifications
You must be signed in to change notification settings - Fork 770
Unsupported a / x.shape[0] #2579
Copy link
Copy link
Open
Labels
bugUnexpected behaviour that should be corrected (type)Unexpected behaviour that should be corrected (type)triagedReviewed and examined, release as been assigned if applicable (status)Reviewed and examined, release as been assigned if applicable (status)
Metadata
Metadata
Assignees
Labels
bugUnexpected behaviour that should be corrected (type)Unexpected behaviour that should be corrected (type)triagedReviewed and examined, release as been assigned if applicable (status)Reviewed and examined, release as been assigned if applicable (status)
🐞Describing the bug
Reproducer:
Result:
ValueError: Op "5" (op_type: inverse) Input x="4" expects tensor or scalar of dtype from type domain ['fp16', 'fp32'] but got tensor[1,int32], inverse, 5Expected result: conversion success
Note: This was seen in a RoPE implementation, which can neatly be fixed with a conversion to float
coremltools 8.3.0