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

avoid copying during array conversion between numpy and mxnet

I want to reduce a memory copy step during my data processing pipeline. I want to do the following: Generate some data from a custom C library Feed the generated data into a MXNet model running on GPU. For now, my pipeline does the…
Kh40tiK
  • 2,276
  • 19
  • 29
1
vote
1 answer

Feature extraction from a pre trained model(RSNET-152) in MXNET

Hi I am trying to extract the output of the penulitmate layer from a pre trained model(RsNet-152) in MxNet. As I need the script to work with a java application, I going with scala as the choice of language. I followed the steps mentioned here…
1
vote
1 answer

mxnet model does not produce same output for same input with no intermediate gradient backprop

I have some experience with Tensorflow but only about a week with mxnet. I am trying to understand the behavior of some code when I hit a break point in the function below: def train_and_eval(lr, end_date_str, pred): …
TFdoe
  • 571
  • 5
  • 16
1
vote
1 answer

Improving training accuracy on Resnet

I am training an object detector using mxnet/resnet50 After the last training run the mAP was 78%, and the loss was 0.37 When I run the detector on my test set (independent of train/val data) I am getting false positives result - with some rather…
jlwebuser
  • 49
  • 7
1
vote
1 answer

how to customise files being copied into tmp directory when running a local pip install?

I'm trying to pip install the python binding of MXNet library from source code: https://mxnet.incubator.apache.org/install/ubuntu_setup.html#install-mxnet-for-python After the main binary is built successfully using g++, there is no problem in…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
1
vote
0 answers

R - mxnet RNN "Incompatible attr in node at 0-th output"

I'm working a multi-layer RNN for a word-level language model. It has a one-to-one configuration so that for each step in the training set a prediction is validated against an eval set of the same dimensions. The model borrows almost entirely from…
Conner M.
  • 1,954
  • 3
  • 19
  • 29
1
vote
1 answer

How to add my parameters (weight, bias) to arguments in symbol?

I am trying to modify the weight of convolution like this. To do this, I make, initialize my parameters(weight, bias), convolute input image using them. But, it shows an error because my parameters are not arguments in symbol. How to add my…
1
vote
2 answers

I don't understand the "Shape inconsistent" error using mxnet

Coming from Keras, I try to reproduce my simple model with MXNet to make prediction using Module. I'm using that simple dataset: https://archive.ics.uci.edu/ml/machine-learning-databases/wine/wine.data I've got 13 inputs (from alcohol to Proline)…
Metal3d
  • 2,905
  • 1
  • 23
  • 29
1
vote
1 answer

MXNet Time-series Example - Dropout Error when running locally

I am looking into using MXNet LSTM modelling for time-series analysis for a problem i am currently working on. As a way of understanding how to implement this, I am following the example code given by xnNet from the link:…
M. Stamp
  • 73
  • 5
1
vote
2 answers

mxnet sagemaker load model

I'm trying to load an already trained model from sagemaker MXnet. I have the model.tar.gz file, however, when I try to do > %%bash > tar -xzf model.tar.gz rm model.tar.gz > prefix = 'model_name' > sym, arg_params, aux_params =…
Frost
  • 33
  • 1
  • 6
1
vote
1 answer

MXNET softmax output: label shape confusion

I have not got a clear idea about how labels for the softmax classifier should be shaped. What I could understand from my experiments is that a scalar laber indicating the index of class probability output is one option, while another is a 2D label…
Alexey Burnakov
  • 259
  • 2
  • 14
1
vote
1 answer

What is the recommended operation to protect some weights from being changed by the trainer in MxNet?

What is the recommended operation to protect some weights from being changed by the trainer in MxNet? As far as I know, if I want to protect some weights in TenserFlow, I should prevent them from being passed to the optimizer. So, I do the same in…
Blue Bird
  • 318
  • 2
  • 9
1
vote
1 answer

how to get full cpu utilization from MXNET in mac os x ?

We are playing mxnet for a while. still couldnt get full cpu utilization as we have in tensorflow in default. we have: python 3.6 mxnet 1.2.1 pos1 mxnet-mkl 1.2.1 pos1 installed via pip (in Pycharm). mac os x Sierra 10.12.6 we have only 2 core…
2adnielsenx xx
  • 488
  • 1
  • 5
  • 22
1
vote
1 answer

How to convert keras tensorflow to keras mxnet

I have a working python code in keras with tensorflow backend. I am utilizing transfer learning from VGG16. All is good. I want to use mxnet backend but had some issues: from keras.preprocessing.image import ImageDataGenerator from keras import…
2adnielsenx xx
  • 488
  • 1
  • 5
  • 22
1
vote
1 answer

Apache MXNet - conversion between gluon and module (and vice versa)?

I would like to know how to convert between the two versions because it seems the quantization capabilities are mainly for the syms, arg_params, aux_params tuple style passing, which can be wrapped around modules well, but not gluon models(correct…
OneRaynyDay
  • 3,658
  • 2
  • 23
  • 56