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

AI::MXNet (Perl API) : how to fit() a zoo model

I am trying to use the Perl API of MXNet (AI::MXNet) to fetch a standard model from ModelZoo (AI::MXNet::Gluon::ModelZoo::Vision) and train it. The following code does not complain but it does not fit(). fit() just returns immediately. My dataset is…
bliako
  • 977
  • 1
  • 5
  • 16
4
votes
1 answer

mxnet import nd or np to use arrays

I'm starting to study mxnet and gluon, but I'm getting somewhat confused about the usage of np/nd arrays. As suggested on the gluon website, I installed mxnet and gluon by running: pip install --upgrade mxnet gluoncv which installs mxnet version…
Carlo
  • 1,321
  • 12
  • 37
4
votes
1 answer

TFRecord vs RecordIO

TensorFlow Object Detection API prefers TFRecord file format. MXNet and Amazon Sagemaker seem to use RecordIO format. How are these two binary file formats different, or are they the same thing?
Austin
  • 6,921
  • 12
  • 73
  • 138
4
votes
1 answer

How to do weighted softmax output custom op in mxnet?

I want to replace mx.symbol.SoftmaxOutput with the weighted version (assign different weight respect to label's frequency in the whole dataset) The original function works well like below: cls_prob = mx.symbol.SoftmaxOutput(data=data, …
DanielTseng
  • 188
  • 1
  • 8
4
votes
2 answers

Make a prediction using mxnet CNN model

Hi I'm a newbie to data science, I followed this tutorial https://mxnet.incubator.apache.org/tutorials/nlp/cnn.html but I am confused over how to make a single prediction using the trained model generated by the above mentioned tutorial. Please…
4
votes
1 answer

MXNet (python3) defining a residual convolution structures as Block from Gluon module

NOTE: I am new to MXNet. It seems that the Gluon module is meant to replace(?) the Symbol module as the high level neural network (nn) interface. So this question specifically seeks an answer utilizing the Gluon module. Context Residual neural…
SumNeuron
  • 4,850
  • 5
  • 39
  • 107
4
votes
2 answers

Simple gradient descent using mxnet

I'm trying to use MXNet's gradient descent optimizers to minimize a function. The equivalent example in Tensorflow would be: import tensorflow as tf x = tf.Variable(2, name='x', dtype=tf.float32) log_x = tf.log(x) log_x_squared =…
user3363678
  • 178
  • 6
4
votes
3 answers

How to save a model when using MXnet

I am using MXnet for training a CNN (in R) and I can train the model without any error with the following code: model <- mx.model.FeedForward.create(symbol=network, X=train.iter, …
Mohammad
  • 1,006
  • 2
  • 15
  • 29
4
votes
1 answer

Python KMax Pooling (MXNet)

I'm trying to recreate the char-level CNN in this paper and am a bit stuck at the final step where I need to create a k-max pooling layer, because I am using MXNet and it does not have this. An important difference is also the introduction of…
3
votes
0 answers

Getting Mxnet Installation issue on MacBook Pro (M1 Chip)

I am using MacBook Pro with M1 Chip (2020). I tried to install mxnet on jupyter notebook (miniforge) using the following command: !pip3 install mxnet opencv-python After running the command, it installed mxnet version 1.6.0. Requirement already…
Hina
  • 41
  • 4
3
votes
2 answers

Sagemaker Serverless Inference & custom container: Model archiver subprocess fails

I would like to host a model on Sagemaker using the new Serverless Inference. I wrote my own container for inference and handler following several guides. These are the…
3
votes
0 answers

Pass image to gradient function for yolo3 from GlounCV model Zoo

I am trying to get the gradient with respect to a specific images (sitting in adv_loader). These images are loaded in adv_loader. I tried just taking the code that was calculating the gradient in the backprop step but Yolo3 doesn’t seem to have a…
mlanier
  • 167
  • 2
  • 3
  • 14
3
votes
2 answers

Storage issue on Sagemaker, even when more provided

I am running a sagemaker instance which always gives me an exception the same place in the cycle, even if I allocate more storage. So it might not be a storage issue, but I am at a loss for why it fails. I got the error at the same spot no matter if…
3
votes
0 answers

Forecast based on gluonts deepstate model is slow when it is run on Linux OS

It is observed that the GluonTS deep state time series model is performing differently in different operating systems. The prediction takes around 3 seconds when it is run over docker container on Mac OS (Quad core, Physical VM, intel i7 @2.3 GHz);…
3
votes
1 answer

How to install "mxnet" package in R 4.0.2

Good afternoon. Recently I have encountered the problem with installing "mxnet" package. I have tried several variants of code, but neither of their actually installs this package. 1. cran <- getOption("repos") cran["dmlc"] <-…
Maxim
  • 99
  • 1
  • 4
  • 11
1 2
3
46 47