You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I load CIFAR-10 images and put them in a
grain.DataLoader
. I used ajax.sharding.Mesh
:My model is a single convolutional layer that cuts images into patches:
and run a single batch:
Here's my question:
when I used
batch_size=128
I got a copy HLO OP that changes the dtype from bf16 to f32:but when I use
batch_size=4096
I don't get that copy operation%fusion = f32[512,8,8,384]{3,0,2,1:T(8,128)} fusion(f32[512,32,32,3]{0,2,3,1:T(8,128)} %param, f32[4,4,3,384]{3,1,2,0:T(4,128)} %param.1), kind=kOutput, calls=%fused_computation
Does this copy operation occur based on the batch size? or is it something else that causes the dtype to change?
appreciate your help :)
Beta Was this translation helpful? Give feedback.
All reactions