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


   Hi guys,
   
   I'm here to confirm that just by editing the file AI/MXNet/Base.pm
   and just by replacing the following code:
   
   use constant DTYPE_MX_TO_PDL => {
       0 => 6,
       1 => 7,
       2 => 6,
       3 => 0,
       4 => 3,
       5 => 0,
       6 => 5,
       float32 => 6,
       float64 => 7,
       float16 => 6,
       uint8   => 0,
       int32   => 3,
       int8    => 0,
       int64   => 5
   };
   
   to 
   
   use constant DTYPE_MX_TO_PDL => {
       0 => PDL::Type->new('float')->enum,
       1 => PDL::Type->new('double')->enum,
   # half-precision is not supported by PDL and this would cause chaos
   #    2 => ,
       3 => PDL::Type->new('byte')->enum,
       4 => PDL::Type->new('long')->enum,
       5 => PDL::Type->new('sbyte')->enum,
       6 => PDL::Type->new('longlong')->enum,
       float32 => PDL::Type->new('float')->enum,
       float64 => PDL::Type->new('double')->enum,
   # half-precision is not supported by PDL and this would cause chaos
   #    float16 => ,
       uint8   => PDL::Type->new('byte')->enum,
       int32   => PDL::Type->new('long')->enum,
       int8    => PDL::Type->new('sbyte')->enum,
       int64   => PDL::Type->new('longlong')->enum,
   };
   
   is enough to solve the issue.
   The version of PDL I am using is 2.068_06, which is a development version:
   cpanm --dev PDL
   It required to remove and reinstall the following two libraries:
   PDL::VectorValued::Utils (1.0.14) and PDL::CCS::Utils (1.23.17)
   
   cpanm --uninstall PDL::VectorValued::Utils
   cpanm PDL::VectorValued::Utils
   
   cpanm --uninstall PDL::CCS::Utils
   cpanm PDL::CCS::Utils
   
   Thank you very much for the support. 
   
   The issue is now closed, since we now have a solution :-)


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