Open alvinleung1996 opened 10 months ago
Hi, @alvinleung1996
Thank you for bringing this issue to our attention and I tried to replicate the same issue from my end and I'm also getting same behavoiur which you mentioned in the issue template so we'll have to dig more into this issue and will update you soon. Thank you!
For reference I have added screenshot below:
WebGPU Backend output :
WebGL Backend output :
System information
Describe the current behavior
When sampling from
tf.multinomial
using the webgpu backend, the 1st sample is always zero.Describe the expected behavior
All samples should respect the the given logits.
Standalone code to reproduce the issue
Execute the following code in the console in https://js.tensorflow.org/api/4.12.0/
Other info / logs
webgpu backend:
webgl backend: