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

Using an existing keras model (architecture and weights) in a distributed environment using Apache Spark and Mxnet

I had trained a model using pandas and keras (using TensorFlow backend) and now need to migrate it to a distributed environment (AWS EMR). I was trying to use Apache Spark (for reading the input created) and Mxnet as backend for Keras. I was able…
shreyansh
  • 108
  • 2
  • 11
1
vote
1 answer

How to access index of a class label in from mxnet nd array? The output must be index of the label name entered with function

#pred_probas is probabilities of each class type def find_class_idx(label): """ Should return the class index of a particular label. :param label: label of class :type label: str :return: class index :rtype: int """ …
1
vote
1 answer

Anaconda (Jupyter) don't see previously installed package from the file <.tar.bz2>

I try to work with Anaconda3-2019.07. I've installed mxnet library from file <.tar.bz2> in offline. I did so because of server which I use hasn't internet connection. For this I entered: conda install --offline mxnet-1.2.1-h8cc8929_0.tar.bz2 The…
1
vote
1 answer

Install mxnet package in Rstudio Cloud

I want to install the package mxnet on Rstudio Cloud, which is the cloud version of Rstudio. I tried it first with R 3.6, then R 3.5.3, neither worked. I tried to install from with this piece of code: cran <- getOption("repos") cran["dmlc"] <-…
agenis
  • 8,069
  • 5
  • 53
  • 102
1
vote
1 answer

Defining a simple neural netwok in mxnet error

I am doing making simple NN using MXnet , but having some problem in step() method x1.shape=(64, 1, 1000) y1.shape=(64, 1, 10) net =nm.Sequential() net.add(nn.Dense(H,activation='relu'),nn.Dense(90,activation='relu'),nn.Dense(D_out)) for t in…
1
vote
0 answers

how to fix pop from empty list error when using keras.layers.Dot in GPU mode

I'm trying to train a simple model with embeddings on Sagemaker, using Mxnet backhand and aiming to run across multiple GPUs. The line below is causing an error: preprod = keras.layers.Dot(axes=1, normalize=False)([bet_vec, user_vec]) Whenever I…
tezzaaa
  • 459
  • 1
  • 6
  • 17
1
vote
0 answers

How to modify internal symbols in mxnet?

In mxnet 1.4 using the Python API, suppose I do import mxnet as mx a = mx.sym.var('a') b = mx.sym.var('b') c = mx.sym.var('c') d = a + b # Change that later print(d) # e = d + c Is there a way to modify an internal symbol of the…
buechel
  • 717
  • 7
  • 18
1
vote
1 answer

How to list all symbols in mxnet?

In mxnet 1.4 using the Python API, suppose I do import mxnet as mx tmp = mx.sym.var('a') print(tmp) # tmp = tmp + tmp print(tmp) # tmp = mx.sym.var('b') tmp = tmp + tmp print(tmp) # I assume,
buechel
  • 717
  • 7
  • 18
1
vote
2 answers

How to access symbol by name in mxnet?

In mxnet 1.4 using the Python API, suppose I do import mxnet as mx var = mx.sym.var('a') print(var) # var = mx.sym.var('b') print(var) # How can I access Symbol a by name? I would like to do something like var_a =…
buechel
  • 717
  • 7
  • 18
1
vote
0 answers

MXNet timeout on second model prediction

I'm setting up a flask server which loads my mxnet model and has a predict-Api-method. While testing the api I noticed, that the prediction has a timeout on the second call in the mxnet api. By timeout I mean that python is stuck in one mxnet…
M.Winkens
  • 140
  • 2
  • 11
1
vote
1 answer

Deploy/convert trained AWS SageMaker MXNet Model to iOS devices

I trained a MXnet SSD resnet-50 model with SageMaker Object Detection Algorithm and want to use it on iOS devices. Therefore I need to convert it to the Apple CoreML format. I tried with mxnet-to-coreml. Maybe there are better ways to do it? Does…
1
vote
1 answer

mxnet - long GPU initialization time

A follow-up of this question: Mxnet - slow array copy to GPU Question: mxnet GPU initialization takes around 20 seconds. How can I fix it? I have the following code: import mxnet as mx import mxnet.ndarray as nd from mxnet import…
user2956272
1
vote
1 answer

Using GPU with python package bert_embeddings and mxnet Fails

I am using the below code to enable GPU using the package mxnet for extracting Bert Embeddings using the package bert_embeddings : from bert_embedding import BertEmbedding import mxnet as mx ctx = mx.gpu() bert_embedding =…
Ashwin Geet D'Sa
  • 6,346
  • 2
  • 31
  • 59
1
vote
1 answer

The Upsampling operation is not supported when convert Mxnet model to Onnx model

When converting a Mxnet model which uses mx.symbol.UpSampling operation, there is an error occurred. It seems that the Upsample operation in Onnx is not compatible with the UpSampling operation in Mxnet. The error is: AttributeError: No conversion…
1
vote
0 answers

How to do inference for a FP16 TensorFlow model with non-fixed input shape in C++?

The model was trained with Python. I have looked into different ways but hit the wall here or there. I summarize as below and please correct me if I am wrong +--------------------+-----+-------+-----------------+ | | C++ | FP 16 |…
Ziyuan
  • 4,215
  • 6
  • 48
  • 77