What is ItemTransform?
Is it a custom type defined in pytorch or is it a type that is defined in fastai?
I tried to look into the source code but I am unable to find the definition of this type.
ItemTransform?Is it a custom type defined in pytorch or is it a type that is defined in fastai?
I tried to look into the source code but I am unable to find the definition of this type.
Item Transform and Batch Transform are how we differentiate what is done on the CPU level (item/individual images) and the GPU level (batch/groups of images).
Also see this discussion: Item_tfms vs batch_tfms
I have a visualization there as well
(And it is fastai, 99.9% of everything in the fastai library is built on itself)
Also, just now realized if you want the source code for ItemTransform, it’s in fastcore (the foundation library for fastai2) here:
@muellerzr Thanks for the reply.
Now the role of ItemTransform is clear to me.