AttributeError: 'ImageClassifierOutput' object has no attribute 'numpy'

Hello,
I am trying to model 'ImageClassifierOutput, output into numpy.
i got this error.
AttributeError: ‘ImageClassifierOutput’ object has no attribute ‘numpy’
please for the same.

.numpy() is a function defined for tensors, so you might need to access the actual internal tensor in ImageClassifierOutput before converting it to a numpy array.

Thanks for your reply