AI::MXNet::TestUtils - Convenience subs used in tests.
Test if two pdl arrays are the same Parameters ---------- a : pdl b : pdl
Calculate the relative difference between two input arrays Calculated by :math:`\\frac{|a-b|_1}{|a|_1 + |b|_1}` Parameters ---------- a : pdl b : pdl
Test if two pdl arrays are almost equal.
Check symbol gives the same output for different running context Parameters ---------- sym : Symbol or list of Symbols symbol(s) to run the consistency test ctx_list : list running context. See example for more detail. scale : float, optional standard deviation of the inner normal distribution. Used in initialization grad_req : str or list of str or dict of str to str gradient requirement.
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.