jehosha commented on issue #20851:
URL: 
https://github.com/apache/incubator-mxnet/issues/20851#issuecomment-1086541526


   Now I have an issue with DTYPE_PDL_TO_MX. It is not consistent. 
   Here is the definition foun din Base.pm:
   
   use constant DTYPE_PDL_TO_MX => {
       6 => 0,
       7 => 1,
       0 => 3,
       3 => 4,
       5 => 6
   };
   
   However I have value 4 that is not present in the above hash:
   
       *PDL::dtype  = sub { my $variable = shift->type->numval;
                            print "variable=", $variable, "\n";
                            DTYPE_MX_TO_STR->{ DTYPE_PDL_TO_MX->{ $variable } } 
};
   The variable has value == 4, which produces the following error:
   
   Use of uninitialized value in hash element at 
perl5/lib/perl5/AI/MXNet/Base.pm line 465.
   
   The question is how to define 4 in the hash table DTYPE_PDL_TO_MX?


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to