
Limit input image size in Transformer to be less than 4096x4096. For very large images, this can reduce memory usage substantially, and stays away from `GL_MAX_TEXTURE_SIZE` - often 4096 PiperOrigin-RevId: 670555939
Limit input image size in Transformer to be less than 4096x4096. For very large images, this can reduce memory usage substantially, and stays away from `GL_MAX_TEXTURE_SIZE` - often 4096 PiperOrigin-RevId: 670555939