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
0
votes
1 answer

Why the multi-ports model can't import into C++?

This is python code to generate a simple multi-ports MLP model-two inputs,two outputs.Using HybridBlock and erport functions make it possible to use in C++. Net Graph: from mxnet import nd from mxnet.gluon import nn import mxnet as mx class…
partida
  • 501
  • 4
  • 20
0
votes
1 answer

When we create the .rec file, do the class ids in the .lst file have to be consecutive and start from 0?

If all the images come from 3 classes, can the set of class ids we put into the second column of the .lst file be {101, 280, 76}? Or it has to be consecutive integers like {5,6,7}, or even more strict, has to be {0,1,2} ? Thanks.
J.Doe
  • 3
  • 1
0
votes
1 answer

[MXNet]Periodic Loss Value when training with "step" learning rate policy

When training deep CNN, a common way is to use SGD with momentum with a "step" learning rate policy (e.g. learning rate set to be 0.1,0.01,0.001.. at different stages of training).But I encounter an unexpected phenomenon when training with this…
0
votes
1 answer

Keras fails to load model weights when using MXNet backend

I am trying gap fill a half hourly time series of carbon fluxes. I want to use train-test-validate cross validation to identify the most parsimonious LSTM model by training a model with all available inputs and then pruning it until the score stops…
June Skeeter
  • 1,142
  • 2
  • 13
  • 27
0
votes
2 answers

Cannot successfully run mxnet in R on windows

I've spent all day trying to figure out how to work mxnet GPU in R on windows. The package installs fine, but on library(mxnet) I get an error: Error: package or namespace load failed for ‘mxnet’: .onLoad failed in loadNamespace() for 'mxnet',…
Garglesoap
  • 565
  • 6
  • 18
0
votes
1 answer

Adding loss functions in MxNet - "Operator _copyto is non-differentiable because it didn't register FGradient attribute"

I have a system that generates training data, and I want add loss functions together to get a batch size. I am trying to do (full code at commit in question), for epoch in range(100): with mx.autograd.record(): loss = 0.0 for k…
user3002273
0
votes
1 answer

What is the correct value of 'rescale_grad' in case of multi-GPU machine?

My batch size is 512, I have 8 GPUs Should I define: rescale_grad = 1. / 512 or rescale_grad = 1. / (8*512) Thanks!
Jenia Golbstein
  • 374
  • 2
  • 12
0
votes
1 answer

How do you compute n-grams in MxNet?

I want to N-gram a set of strings in MxNet. Perferably, I would do something like TFIDF Vectorizing, but even a simple N-gram with count and feature limits would be fine. Is there a built in function for this? What would be the best…
user3002273
0
votes
1 answer

MXNet distributed training accuracy

I am using MXNet to finetune Resnet model on Caltech 256 dataset from the following example: https://mxnet.incubator.apache.org/how_to/finetune.html I am primarily doing it for a POC to test distributed training (which I'll later use in my actual…
Vikk
  • 3,353
  • 3
  • 22
  • 24
0
votes
1 answer

MXnet : Error in continuing training a model loaded from file

I also post this question in the repository. I'm trying to load a model previously saved in files following the tutorial here. I use exactly the same command as shown in the tutorial, but I meet with the following error message: Traceback (most…
pfc
  • 1,831
  • 4
  • 27
  • 50
0
votes
1 answer

Mxnet -js- Writing Bytes to String

I am trying to use Mxnet-js library to visualize my Mxnet trained model in browser. I am following Mxnet-js git readme file. They provided a python script. ./tool/model2json, to convert model to json file. When i am running this script with my…
Sherlock
  • 993
  • 1
  • 10
  • 22
0
votes
2 answers

Does the number of hidden nodes in the fully connected layer has to be equal to the number of output categories?

I tried the tutorial for image recognition in R using the MXNet package https://www.r-bloggers.com/image-recognition-tutorial-in-r-using-deep-convolutional-neural-networks-mxnet-package . The aim of the tutorial is to recognize faces of 40 persons.…
SvDigi
  • 11
  • 3
0
votes
1 answer

GPU mxnetR windows10

I started GPU computing by mxnetR in windows 10. Simple question is if mx.mlp with mx.gpu use multiple cores in GPU. I seems not... Also as a test, I wrote a simple program of mx.mlp, with doParallel. But it seems not to run the program in multiple…
ohtant
  • 1
  • 1
0
votes
1 answer

Building mxnet for windows (both cpu and gpu mode) - Running into errors

Mxnet is supposed to build and run, on CPU as well as on GPU, for multiple OSs including Windows. I'm trying to build mxnet from source on Windows Server 2016 that has NVIDIA K80 GPU on it. I followed all the instructions in…
0
votes
1 answer

I can not start mxnet R for GPU in windows 10

Hi I try to install mxnet R in windows. Followed by mxnet.com web page, https://mxnet.incubator.apache.org/get_started/install.html, I ran the prebuild package. The command looks to be run successfully. But when I start mxnet by "library(mxnet)", I…
ohtant
  • 1
  • 1