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

MXNet - multiplying scalar to an array leads to zero

I am trying to implement tutorials of mxnet in this page, in computing gradient decent: def SGD(params, lr): for param in params: param[:] = param - lr * param.grad I noticed that when lr<1, the scalar to array multiplication lr *…
Ali
  • 387
  • 4
  • 11
1
vote
2 answers

R: object ‘set_global_graph_attrs’ is not exported from 'namespace:DiagrammeR'

I wanted to install Mxnet library and found on this forum the topic where was described how do it . cran <- getOption("repos") cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/" options(repos = cran) …
psysky
  • 3,037
  • 5
  • 28
  • 64
1
vote
1 answer

How can I install keras using anaconda with mxnet backend

How can I set keras's backend to be MXNet? I have found only this installation guide, but after I install keras by hand in this way, Anaconda does not recognize this installation. In other words, this command: KERAS_BACKEND=mxnet python -c "from…
Ștefan
  • 773
  • 2
  • 7
  • 19
1
vote
1 answer

Efficiently Create compressed banded diagonal matrix in mxnet

In my problem I have a vector containing n elements. Given a window size k I want to efficiently create a matrix size n x 2k+1 which contains the banded diagonal. For example: a = [a_1, a_2, a_3, a_4] k = 1 b = [[0, a_1, a_2], [a_1, a_2, a_3], …
kanedo
  • 75
  • 6
1
vote
1 answer

How to make an image recognition deep net detect small differences

I am currently working on a machine learning project with Apache MXNet, and I am using the Inception V3 model (imagenet1k-inception-bn model on the MXNet model zoo). I am currently trying to train a model to distinguish between two object types, but…
QAH
  • 4,200
  • 13
  • 44
  • 52
1
vote
1 answer

CNN: Why is the image matrix transformed to (channel, width, height)?

I am going through some CNN articles. I see that they transform the input image to (channel, width, height). A code example taken from MXNET CNN Tutorial. def transform(data, label): # 2,0,1 means channels,width, height return…
1
vote
1 answer

mxnet ndarray indexing in python

I am new to mxnet. I just installed mxnet 1.0.0 and python 3.5 on a Ubuntu 14.04 machine with CUDA 8.0 and cudnn 7.0.5. My code is given below. I am trying to store image data in an ndarray. (see…
John Watts
  • 63
  • 6
1
vote
2 answers

Training neural network with Apache mxnet (gluon) causes program to crash

I am trying to train a convolutional neural network with mxnet using the Gluon API on a set of images I want to classify. However, the same network and code sometimes outputs extremely different results for the same data, and on occasion simply…
dntk
  • 41
  • 5
1
vote
1 answer

libnvrtc.so.8.0 missing on Google Colab (needed by mxnet)

I installed mxnet using !pip install mxnet-cu80 However when I try to import mxnet I get error complaining that libnvrtc.so.8.0 is missing. Searching for it by !find / -name 'libnvrtc.*' returns nothing. Searching by google reveals that NVRTC is…
Zbyněk Winkler
  • 1,263
  • 1
  • 12
  • 12
1
vote
1 answer

Are saved mxnet models GPU or system specific?

Model train system: AWS Ubuntu p2.xlarge, R 3.4.0, mxnet_1.0.1. Saved via: mx.model.save(A3.MXmodel, "Action/A3.MXmodel", iteration = 3000) Loading on same system works fine via: A3.MXmodel <- mx.model.load("A3.MXmodel", iteration=3000) A3.pred <-…
Garglesoap
  • 565
  • 6
  • 18
1
vote
1 answer

when import mxnet on CentOS, get: OSError: /lib64/libc.so.6: version `GLIBC_2.17' not found

I am trying to import mxnet on a shared cluster, but I encounter errors: import mxnet as mx Traceback (most recent call last): File "", line 1, in File…
carlos
  • 11
  • 2
1
vote
2 answers

A weighted version of SoftmaxOutput in mxnet

I am training a neural network in mxnet that does classification, and I would like to put more weight on some of the classes. So besically, I would like to use a weighted version of mxnet.symbol.SoftmaxOutput. As a toy example, I used a simplified…
Miriam Farber
  • 18,986
  • 14
  • 61
  • 76
1
vote
2 answers

Mxnet version 1.0.0 gluon KeyError: 'shape'

I have installed the newest mxnet version 1.0.0 from pip. When I print the Layer's weight, it assert a KeyError: "Shape". I'm new in mxnet and everything I have followed with the mxnet official tutorial. import mxnet from mxnet import…
Hahn Yuan
  • 13
  • 3
1
vote
2 answers

MXNet interfering with Python logging

I want each epoch information to be stored in a log file to see the accuracy versus epoch, but I am not able to log. Why? mnist = mx.test_utils.get_mnist() batch_size = 100 print(os.getcwd()) log_file = '1.log'#''process_fold_' + str(0) +…
1
vote
2 answers

How to display MXNet NDArray as image in Jupyter Notebook?

I have an MXNet NDArray that has image data in it. How do I render the NDArray as image in Jupyter Notebook? type(data) mxnet.ndarray.ndarray.NDArray data.shape (3, 759, 1012)
Indhu Bharathi
  • 1,437
  • 1
  • 13
  • 22