hxzd5568 opened a new pull request, #14306:
URL: https://github.com/apache/tvm/pull/14306

   Add a data type check for tvm.nd.array's API TVMArrayCopyFromTo. Lacking the 
type check
   leads to a value error in some situations. 
   For example, the user input x to a builded graph, the x has a shape of 
[200,10] and has a dtype of 'float32'. When copying the x
   to the NDarray placeholder with type 'float64' whose shape is [100,10], the 
program doesn't report a warning, because it can pass the size check i.e. 
200*10*32==100*10*64, however, every 64 continous bits in inputx is treated a 
number  and copyed to the new ndarray, the values change. because of different 
hardcode. More importantly, this kind of error is implict.                      
        


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to