You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2022/04/02 04:14:22 UTC

[GitHub] [incubator-mxnet] jehosha commented on issue #20851: Perl Data Language types are hardcoded and need to not be

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: issues-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org