Kh4L opened a new pull request #18332:
URL: https://github.com/apache/incubator-mxnet/pull/18332


   ## Description ##
   As described in #16757 , a list of operators `FInferType` functions were 
throwing an exception if the input type is not defined (dtype=`-1`).
   
   This was preventing us from running a partial type inference where some not 
(yet) defined input `dtype`s would trigger an exception.
   
   The expected behavior is that `FInferType` returns false when the type 
cannot be inferred correctly, a boolean value that the executor inference pass 
uses to wet the `Graph` attribute `dtype_num_unknown_nodes`.
   This attribute is then used by the executor or any graph modules (e.g. 
Partition API) to determine the correctness, or know if a new inference pass is 
required.
   
   This PR fixes it by making the `FInferType` functions return `false` when 
the input dtype is `-1`.
   
   


----------------------------------------------------------------
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.

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


Reply via email to