Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Dataflow programming on CPU and GPU using AI::MXNet

by bliako (Monsignor)
on Dec 18, 2019 at 12:04 UTC ( [id://11110332]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    # we need the first (and only one at this case) output as PDL array
    print "output: ".$exe->outputs->[0]->aspdl."\n";
    
  2. or download this
    # 2d array data, initialised to these rows (edit: updated to specify c
    +tx too)
    my $a_data = mx->nd->array([[1,2],[3,4]], ctx => $ctx);
    my $b_data = mx->nd->array([[5,6],[7,8]], ctx => $ctx);
    my $c_data = mx->nd->array([[9,10],[11,12]], ctx => $ctx);
    my $d_data = mx->nd->array([[13,14],[15,16]], ctx => $ctx);
    
  3. or download this
    [
     [286 308]
     [366 396]
    ]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://11110332]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found