Questions tagged [mxnet]

Apache MXNet is a fast, scalable, open source deep learning framework that supports Python, R, Scala, C++, Julia, Go, and Javascript. MXNet can run on multiple CPUs and multiple GPUs distributed across multiple hosts, with almost linear scalability.

Apache MXNet: Flexible and Efficient Library for Deep Learning

For more details see http://mxnet.io/

Flexible

Supports both imperative and symbolic programming

Portable

Runs on CPUs or GPUs, on clusters, servers, desktops, or mobile phones

Multiple Languages

Supports over 7 programming languages, including C++, Python, R, Scala, Julia, Matlab, Javascript and Perl.

Auto-Differentiation

Calculates the gradient automatically for training a model

Distributed on Cloud

Supports distributed training on multiple CPU/GPU machines, including AWS, GCE, Azure, and Yarn clusters

Performance

Optimized C++ backend engine parallelizes both I/O and computation

701 questions
1
vote
1 answer

How can I use AMD RX Radeon with mxnet package in R specifically

I read about the possibility to use NVidia with mxnet package, however I didn't find anything about using RX Radeon GPU. can I specifically use RX Radeon with mxnet package in R? Below is the link that explains mxnet Installation with…
migdal menora
  • 169
  • 4
  • 16
1
vote
1 answer

How can I compute the hessian of the loss function in MXNet?

I'm learning MXNet at the moment and I'm working on a problem using neural nets. I'm interested in observing the curvature of my loss function with respect to the network weights but as best I can tell higher order gradients are not supported for…
Iinferno1
  • 49
  • 1
  • 6
1
vote
0 answers

Callback function with Mxnet in C++

With Mxnet, it is possible to use callback functions. One perfect example is with the R API - How to save a model when using MXnet. But with the C++ API, I don't find any example on how to use them, nor some default callback functions (such as the…
Emile D.
  • 602
  • 2
  • 11
  • 20
1
vote
1 answer

keras-mxnet not pulling properly from pip

Error from importing keras >>> import keras /Users/ray_zhang/anaconda3/envs/idp3/lib/python3.6/site-packages/daal/__init__.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative…
OneRaynyDay
  • 3,658
  • 2
  • 23
  • 56
1
vote
1 answer

Output value with Mxnet C++ API

I am trying to implement a custom loss function in Mxnet, using its C++ API. The question of loss function has already been risen in python (how to use customized loss function with mxnet?) even though it doesn't address the specific question of the…
Emile D.
  • 602
  • 2
  • 11
  • 20
1
vote
1 answer

MxNet has trouble saving all parameters of a network

In my experiment, the MxNet may forget saving some parameters of my network. I am studying mxnet’s gluoncv package (https://gluon-cv.mxnet.io/index.html). To learn the programming skills from the engineers, I manually generate an SSD with…
1
vote
1 answer

Training a CNN model using mxnet and NDarry

I'm trying to convert 20 images using cv2 into ndarry and then train a CNN model (mxnet) using the ndarry. First I'm converting color images with various pixels into gray and 128 by 128 pixel images. So at the end of the 2nd for-loop, i get a (20,…
Phillip1982
  • 189
  • 1
  • 2
  • 10
1
vote
1 answer

Error installing MxNet for python with pip due to awsebcli

I was following Apache's instructions to install MxNet for Python on a MacOS (CPU): http://mxnet.incubator.apache.org/install/index.html However, when I get to the line pip install mxnet --pre I run into the issue where it quits installing due to…
ssmost
  • 41
  • 8
1
vote
1 answer

Python multiprocessing.Pool cannot pickle mxnet.mod.Module object

here is approximately what I did: import mxnet as mx import cv2 from multiprocessing import Pool from itertools import repeat num_worker=4 CNNNet=[] img = cv2.imread('../datasets/1.jpg') sym, arg_params, aux_params =…
庹宇翔
  • 13
  • 5
1
vote
1 answer

Getting error while infering sagemaker endpoint

I created training job in sagemaker with my own training and inference code using MXNet framework. I am able to train the model successfully and created endpoint as well. But while inferring the model, I am getting the following error: ‘ClientError:…
Harathi
  • 999
  • 2
  • 7
  • 8
1
vote
1 answer

Possible to Use MXNet gluon.Trainer without a Neural Network?

I am trying to use the graph structure of MXNet to speed up some calculations, and I am currently trying to mimic behavior that I have already implemented in PyTorch. However, I am confused on how to properly do this, be it with gluon.Trainer or…
Matthew Feickert
  • 786
  • 6
  • 26
1
vote
1 answer

MXNET - Invalid type '' for data, should be NDArray, numpy.ndarray,

I am having trouble with basic IO with mxnet. I am attempting to use mxnet.io.NDArrayIter to read in-memory datasets for training in mxnet. I have the below code (condensed for brevity) which preprocesses the code and attempt to iterate through…
DFenstermacher
  • 564
  • 1
  • 9
  • 23
1
vote
2 answers

Error while installing mxnet on mac os

I'm trying to install mxnet on my MacBook Pro. The first step on their website was to install Homebrew by typing: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" in the Terminal. This gave me the…
asilvester635
  • 81
  • 2
  • 13
1
vote
2 answers

Error while deserializing the Apache MXNet object

I have trained and saved a model using Amazon SageMaker which saves the model in the format of model.tar.gz which when untarred, has a file model_algo-1 which is a serialized Apache MXNet object. To load the model in memory I need to deserialize the…
Vasanti
  • 1,207
  • 2
  • 12
  • 24
1
vote
1 answer

"MultiBoxTarget" always returns zero arrays

I am trying to use mxnet ssd object detection provided in mxnet SSD, while I'm trying with provided data set with two classes, it works fine. But I am trying to use my own data set with 40 different classes, there is a problem. I noticed that…
Ali
  • 387
  • 4
  • 11