convolutional-neural-network-from-scratch-python icon indicating copy to clipboard operation
convolutional-neural-network-from-scratch-python copied to clipboard

TypeError: No loop matching the specified signature and casting was found for ufunc true_divide

Open thomas4721 opened this issue 3 years ago • 1 comments

hello, i am trying this code and i got this error "TypeError: No loop matching the specified signature and casting was found for ufunc true_divide" in line 14 on "main.py" train_images /= int(np.std(train_images))

can you help me to find a reason why i can get that error.. thank you

thomas4721 avatar Feb 17 '22 08:02 thomas4721

use // instead of /

JunningWu avatar Jun 21 '23 07:06 JunningWu