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

Error when trying to train Deep Java Library neural Network with an Image folder Dataset

With this code: public class Train { public static void main(String[] args) throws IOException, TranslateException { …
Dragon
  • 1
  • 3
0
votes
0 answers

A question about mxnet - MXNetError: Check failed: delay_alloc:

I am studying GNN and trying to follow and study some code samples. What i am looking at is Detecting fraud in heterogeneous networks using Amazon SageMaker and Deep Graph Library | AWS Machine Learning Blog. I am trying to implement this by plain…
kcwoo
  • 1
  • 1
0
votes
0 answers

Numerical Prediction with MX-Gluon ends up in a loop

I'm trying to build a small MLP Network to predict some numerical values. The input are 6 different paramaters and the result should be a prediction of the target value. The MLP consists of 2 hidden layers and 1 output layer with exactly one Neuron.…
SickerDude43
  • 168
  • 8
0
votes
0 answers

Why is it so difficult to install mxnet package in R?

I have tried every way that I knew, and searched a lot. Still not able to install "mxnet" package in Rstudio. I have scanned all possible ways on Apache website as well, but each method has it's own stopping point somehow. Anyone being able to…
0
votes
0 answers

Class weight order in SoftmaxCrossEntropyLoss in MXNET

I have an unbalanced dataset of pictures. Simplifying a little bit, let's say the dataset is composed by three different categories {"A", "B", "C"}, which contain respectively: "A": 2500 pictures "B": 10000 pictures "C": 2000 pictures which leads…
Dave
  • 349
  • 4
  • 22
0
votes
0 answers

Trouble with running on GPU in MXNet

I am reproduce code at https://github.com/cartus/dcgcn in Colab. But there is an error when using GPU. Meanwhile, if I use CPU, this error does not appear. Is there any solution ? Note: I use mxnet_cu116 and cuda version: 12.0 Thank…
0
votes
0 answers

MxNet, check if all elements of array have same value

I need to check if two MxNet arrays are the same, so I'm using: def check_equity(x1, x2): comp = mx.nd.equal(x1, x2) which produces an array of 0/1 based on whether the corresponding values of x1 and x2 are equal. But how can I check if all the…
Carlo
  • 1,321
  • 12
  • 37
0
votes
0 answers

Mxnet, append elements and remove oldest one

I have an MxNet array representing 4 sequences, each formed by 5 RGB images with dimension (224x224), so that the batch shape is: total_batch.shape = (4, 5, 224, 224, 3) This is just for a visual representation (each square is a 224x224x3…
Carlo
  • 1,321
  • 12
  • 37
0
votes
0 answers

MXNet colab pro allocate memory on GPU stuck

I bought Colab pro to train a model written with MXNet. In the standard version of Colab with GPU, everything is working fine. But in the pro version, a simple array allocation on GPU is running forever: mx.nd.array([1, 2, 3],…
Vivere
  • 1,919
  • 4
  • 16
  • 35
0
votes
0 answers

Modify Mxnet nodes in a json file in C++

I have a generic Mxnet model saved into a json file that I load in a C++ script. But depending on the specific case, I need to modify the attributes of many nodes. Is there a way to do so after (or before) calling LoadJson on that json file? Thank…
Amin Marshal
  • 183
  • 2
  • 10
0
votes
1 answer

How to resolve this pip install error (when trying to install mxnet)?

I am working with anaconda & run the cmd:pip instal mxnet. I already tried to upgrade pip,wheel,setuptools. & to instal it with --no-use-pep517,--no-cache-dir & --pre as recommended here:https://bobbyhadz.com/blog/python-eror-legacy-instal-failure &…
thestruggleisreal
  • 940
  • 3
  • 10
  • 26
0
votes
1 answer

How to get mxnet function decorators in python

I want to get mxnet function decorators in python. I can get the decorators for Tensorflow as follows: Given that we have the following tensorflow API: tf.math.floor(2.5) When I run the code, the function arguments are set inside tensorflow…
Nima shiri
  • 73
  • 7
0
votes
0 answers

Neural Network's parameters turning nan with MXNet

I'm training a neural network with MXNet and turn out that some net's parameters become nan after some training iterations. I'll let the mains part of my code for explanation: Data preparation import mxnet as mx from mxnet import gluon, autograd,…
0
votes
0 answers

i3d_resnet50, shape error when replacing head with Global Average Pooling

I'm working with activity recognition models implemented in GluonCV/MxNet, and I wanted to try replacing the fully connected layer of the model by using global average pooling. I have 4 output classes, so the idea was to: remove the current model…
Carlo
  • 1,321
  • 12
  • 37
0
votes
0 answers

How to check Tensor elements are in list?

I would like to check which elements of an mxnet Tensor are in a python list. How can I do it? For example, let's say I've got the Tensor [[1 2 3] [4 5 6]] and I ask if elements are in list [2, 5], then I should get the answer [[0 1 0] [0 1 0]]
cserpell
  • 716
  • 1
  • 7
  • 17