Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug on PDL version 2.068 #1

Closed
jehosha opened this issue Jan 26, 2022 · 2 comments
Closed

Bug on PDL version 2.068 #1

jehosha opened this issue Jan 26, 2022 · 2 comments

Comments

@jehosha
Copy link

jehosha commented Jan 26, 2022

Hi friend,

PDL (2.068) is not able to retrieve MXNet tensors. It can only retieve the first integer pointed to by the memory reference.
The rest of the array's content is completely set to zeros.
use strict;
use warnings;
use AI::MXNet qw(mx);
use AI::MXNet qw(nd);
use Data::Dump qw(dump);

my $x = mx->nd->array([5, 9]);
print $x->aspdl;

It prints [5,0] instead of [5, 9].

Previous PDL version 2.047 did not have this issue.
I figured out a temporary "solution" to the problem by removing PDL (2.068) and installing from source PDL version 2.047 and PDL::VectorValued::Utils (1.0.14) and PDL::CCS::Utils (1.23.17).

Please give a solution to the problem.
You can contact me by email if you need me to make tests on the new version of PDL.

@jehosha jehosha closed this as completed Jan 26, 2022
@dkogan
Copy link
Owner

dkogan commented Jan 26, 2022

This is a mirror. Please report bugs to the PDL project at http://pdl.perl.org

@jehosha jehosha reopened this Jan 26, 2022
@jehosha
Copy link
Author

jehosha commented Jan 26, 2022

The issue has been reported to:
apache/mxnet#20851
And the solution has been found.
Thanks.

@jehosha jehosha closed this as completed Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants