Fix the the type cast error, issue #214#217
Fix the the type cast error, issue #214#217ruanqizhen wants to merge 2 commits intomicrosoft:masterfrom
Conversation
Without the change, there will be an error: numpy.core._exceptions.UFuncTypeError: Cannot cast ufunc 'multiply' output from dtype('float64') to dtype('uint8') with casting rule 'same_kind'
|
This same fix worked when using |
|
A better way is to use the numpy functions to explicitly specify an unsafe cast. |
hello,EXCUSE ME,when I run the training code,I don't know where to find the file for training VAE_B_scratch weights, could you please share with me? I'm looking forward to your reply.Thank you. |
1 similar comment
hello,EXCUSE ME,when I run the training code,I don't know where to find the file for training VAE_B_scratch weights, could you please share with me? I'm looking forward to your reply.Thank you. |
Without the change, there will be an error: numpy.core._exceptions.UFuncTypeError: Cannot cast ufunc 'multiply' output from dtype('float64') to dtype('uint8') with casting rule 'same_kind'