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
2 answers

Why mxnet's GPU version cost more memory than CPU version?

I made a very simple network using mxnet(two fc layers with dim of 512). By changing the ctx = mx.cpu() or ctx = mx.gpu(0), I run the same code on both CPU and GPU. The memory cost of GPU is much bigger than CPU version.(I checked that using 'top'…
David Ding
  • 680
  • 3
  • 9
  • 19
0
votes
1 answer

Why MXNet is reporting the incorrect validation accuracy?

I am new to MXNet and want to solve a simple example that uses 1 layer network to solve the digit classification problem. My program goes as follows: import math import numpy as np import mxnet as mx import matplotlib.pyplot as plt import…
Bojian Zheng
  • 2,167
  • 3
  • 13
  • 17
0
votes
1 answer

How to use mxnet to load grayscale png file?

I want to use mxnet Image API to load grayscale png file. But Image API became 3channel RGB data. How to convert from 3channel data to 1channel data?
user2850652
  • 179
  • 1
  • 7
  • 13
0
votes
1 answer

How to create an input with multiple data types in mxnet?

Suppose I have a data file that has entries that look like this 0.00,2015-10-21,1,Y,798.78,323793701,6684,0.00,Q,H2512,PE0,1,0000 I would like to use this as an input to an mxnet model (basic Feed Forward Multi-layer Perecptron). A single input…
sail0r
  • 445
  • 1
  • 5
  • 18
0
votes
2 answers

How to use NDArray in c++ api?

I am changing an c++ example in mxnet. I do not understand how to allocate an NDArray object. There is no even basic documentation around, which is pretty frustrating. I try to allocate an NDArray, but by declaring an instance it does not seem to…
0
votes
1 answer

mxnet/mxnet/python/mxnet/../../lib/libmxnet.so: undefined symbol: cblas_ddot

I tried to install mxnet as follows: Operating System: RHEL 6.9 (2.6.32-696.el6.x86_64) Compiler: gcc (GCC) 5.3.0 also tried with 6.2.0 A. OpenBLAS build as 1. git clone https://github.com/xianyi/OpenBLAS.git 2. cd OpenBLAS 3. make DYNAMIC_ARCH=1…
0
votes
1 answer

Possible incorrect usage of custom eval_metric in MXNet

I am working on a problem and were trying to solve using MXNet. I was trying to use a custom metric in the code. The code for the same is: def calculate_sales_from_bucket(bucketArray): return numpy.asarray(numpy.power(10,…
Abhinav Aggarwal
  • 1,205
  • 2
  • 11
  • 24
0
votes
1 answer

CNN Image Recognition in MXNET in R to output Scalar number instead of Class

I am trying to use the mxnet package in R using a CNN to try and predict a scalar output (in my case wait time) based on the images. However, when I do this, I get the same resultant output (it predicts the same number which is probably just the…
Ic3MaN911
  • 251
  • 1
  • 2
  • 8
0
votes
1 answer

Incomplete mxnet install?

I am following along with the tutorials here: http://gluon.mxnet.io/P01-C02-ndarray.html. I installed mxnet for windows according to the instructions here: http://mxnet.io/get_started/windows_setup.html. I did not get so far before running into…
Sledge
  • 1,245
  • 1
  • 23
  • 47
0
votes
1 answer

MXNet ImageRecordIter test data / label format

I'm having some trouble understanding how MXNet ImageRecordIter works. Here is the reference I've been using For one, what does the --test-ratio flag actually do? When generating an lst file, I can't tell which lines are test data. Another larger…
0
votes
1 answer

How do I split the input for a mxnet neural network?

I'm making a neural network with a not very obvious connection architecture. I comes down to 4 chunks of inputs, each of them having their own path towards the final outputlayer, merging them in between in several steps. I'm using mxnet on R. I…
Kurt Sys
  • 11
  • 4
0
votes
1 answer

Using topk to prune inputs in MXNet

I am trying to make an operator in MXNet that will introduce sparsity in the output in the following way: Doing the pruning for each data-point separately (axis 0 is for the data-points) Dropping lower weights to 0 Keeping the same dimensions as…
0
votes
1 answer

jupyter notebook kernel dies when use mxnet ImageRecordIter with cifar10_val.rec

The cell is like below, trying to use cifar10_val.rec.The file is there. def get_data_from_cifar(): train = mx.io.ImageRecordIter() val = mx.io.ImageRecordIter() return train, val train, val = get_data_from_cifar() Everytime I run…
Shihe Zhang
  • 2,641
  • 5
  • 36
  • 57
0
votes
2 answers

Image Recognition with Scalar output using CNN MXnet in R

So I am trying to use image recognition using the mxnet package in R using a CNN to try and predict a scalar output (in my case wait time) based on the image. However, when I do this, I get the same resultant output (it predicts the same number…
0
votes
1 answer

Cannot start mxnet on windows using R

I am trying to get running mxnet but I still get this error, can you help me please ? Error: package or namespace load failed for ‘mxnet’: .onLoad failed in loadNamespace() for 'mxnet', details: call: inDL(x, as.logical(local), as.logical(now),…