Issues with RTP params #61
Replies: 2 comments 3 replies
-
Can you please provide the full code? |
Beta Was this translation helpful? Give feedback.
-
@GiuseppeSorrentino99 I found a work around, the a = bfloat16(3.14)
app.test_0.size.value = int.from_bytes(a.tobytes(), "little") This should also work for This could be a nice contribution to Riallto, if you would like to collaborate the code to interpret the values should go here https://github.com/AMDResearch/Riallto/blob/main/npu/runtime/sequence.py#L138 you would probably want to track the dtype of the RTP to be able to interpret it correctly |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I am trying to write a very basic kernel taking as input a float RTP, using bfloat16 or classic float.
This is the kernel Code:
I am using the following behaviouralFX
And the following application
To set the size, I use
However, when looking at the output, I have the following results,
Using Float
Input 0 is 0
Input 1 is 1.40129846e-45
Input 2 is 2.8025969e-45
It looks like "Input * 1.4e-45"
Using bfloat16 ( hence changing the type of the kernel function size param)
Input 0 is 0
Input 1 is 9.1835496e-41
Input 2 is 1.8367099e-40
It may probably be an error in my code, but the same code works with uint32_t
Beta Was this translation helpful? Give feedback.
All reactions