AI::MXNet::Function::Parameters - Read/write RecordIO format data
Parameters ---------- uri : Str uri path to recordIO file. flag: Str "r" for reading or "w" writing.
Open record file.
Close record file.
Reset pointer to first item. If record is opened with 'w', this will truncate the file to empty.
Write a string buffer as a record. Parameters ---------- $buf : a buffer to write.
Read a record as a string. Returns ---------- $buf : string
unpack a MXImageRecord to a string Parameters ---------- s : str string buffer from MXRecordIO.read Returns ------- header : AI::MXNet::IRHeader header of the image record s : str unpacked string
pack a string into MXImageRecord Parameters ---------- $header : AI::MXNet::IRHeader or ArrayRef suitable for AI::MXNet::IRHeader->new(@{ ArrayRef }) header of the image record. $header->label can be a number or an array ref. s : str string to pack
AI::MXNet::IndexedRecordIO - Read/write RecordIO format data supporting random access.
Parameters ---------- idx_path : str Path to index file uri : str Path to record file. Only support file types that are seekable. flag : str 'w' for write or 'r' for read
Query current read head position.
Query current write head position.
Read record with the index. Parameters: ----------- $idx
Write record with index. Parameters: ----------- Int $idx Str $buf
To install AI::MXNet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::MXNet
CPAN shell
perl -MCPAN -e shell install AI::MXNet
For more information on module installation, please visit the detailed CPAN module installation guide.