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
Split UnaryOps.CAST into CAST and BITCAST #4487
Conversation
Good to see you back! |
arg of cast should be changed to only be the dtype, we don't need the True/False anymore since CAST/BITCAST are different ops |
99157dd
to
fbb09ae
Compare
6b3b035
to
b3ddb4b
Compare
|
71580b9
to
ce5a55f
Compare
Changes
|
did you try bumping the DB version for the actions issue? you might just need to revalidate the sqlite db instead of changing action space script. |
Still wrong after db bump, only seems to be solved by bumping axis in unroll. |
the error is saying the handcoded opt had used a action that's not in the search action lists. can you print the kernel that caused this? |
congrats! george@tinygrad.org to claim |
* Separate cast and bitcast * Fix lint * No more arg[0] * Revert "No more arg[0]" This reverts commit dee6911. * CAST/BITCAST arg is the dtype only, no more tuple * No image bitcast, regenerate dataset * Small fixes
This PR introduces
UnaryOps.BITCAST
, and it is used instead ofUnaryOps.CAST
and bitcast=true boolean flag combination.a = Tensor([1,2,3], dtype=dtypes.float).bitcast(dtypes.int).realize()
before
after