tlby commented on a change in pull request #7815: [Perl] reduce buffer copies
in NDArray<->PDL conversions
URL: https://github.com/apache/incubator-mxnet/pull/7815#discussion_r137894590
##########
File path: perl-package/AI-MXNet/lib/AI/MXNet/NDArray.pm
##########
@@ -208,17 +208,13 @@ method _sync_copyfrom(ArrayRef|PDL|PDL::Matrix
$source_array)
confess("Shape inconsistant: expected $ndary_shape_str vs got
$pdl_shape_str")
}
my $perl_pack_type = DTYPE_MX_TO_PERL->{$dtype};
Review comment:
`$perl_pack_type` is still used in deciding whether to call
`_half_to_float()` or `_float_to_half()` in those subroutines.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services