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

Mxnet - slow array copy to GPU

My problem: How should I perform fast matrix multiplication in mxnet? My concrete problem: array copy to GPU is slow. What can be done about it? I create random arrays, copy them to the context, and then multiply. import mxnet as mx import…
user2956272
2
votes
2 answers

RuntimeError: Cannot find the MXNet library

I want to create executable for my code where i'm using mxnet with pyinstaller. I got this error File "mxnet/libinfo.py", line 74, in find_lib_path RuntimeError: Cannot find the MXNet library. List of…
Ritesh Dubal
  • 45
  • 1
  • 6
2
votes
1 answer

How can I deploy a model that i trained on amazon sagemaker locally?

I trained a model using aws blazingtext algorithm on amazon sagemaker and I was able to deploy an endpoint using sagemaker. However, in my circumstance this is not cost-efficient and I would like to run it locally. I have found the documentation on…
kizzay
  • 21
  • 1
2
votes
1 answer

MXNet CuDNN Autotune management

Can I control exactly when MXNet should run performance tests? I have an MXNet application that is about to go to production. It is running ok, but it has a variable batch size and it causes MXNet to perform autotune often. Although the batch size…
Thierrypin
  • 21
  • 1
  • 4
2
votes
1 answer

Export MXNet model to ONNX with _contrib_MultiBoxPrior Error

I created an object detection model in AWS SageMaker, based on SSD/ResNet50 and in MXNet. Now I would like to optimize it in TensorRT, for which I need to export to ONNX as a first step. Looking for any recommendation on converting…
2
votes
1 answer

How to initialize a Symbol Variable in mxnet

I tried to create some very basic mxnet code that should only initialize a variable and output the same. The issue is, I can't get the initialization done. I pass the initializer as parameter to Variable as indicated in the mxnet docs I already…
rudidu
  • 21
  • 2
2
votes
1 answer

CuDNN code gives CUDNN_STATUS_EXECUTION_FAILED status only in release

I am compiling a git version of the MXNet framework, which use CuDNN inside its code. Whenever MXNet is compiled in debug, my example test is running fine and my neural network is training. However, when I switch to release mode, the execution fails…
Emile D.
  • 602
  • 2
  • 11
  • 20
2
votes
1 answer

How to fix 'undefined reference to _gfortran_concat_string and to _gfortran_etime when building MXNET?

I am trying to build MXNET from this repo https://github.com/mahyarnajibi/SNIPER/tree/cvpr3k. I have cuda, cudnn, and openblas installed. I build the code with the following command: make -j 8 USE_CUDA_PATH=/usr/local/cuda The error message is as…
2
votes
1 answer

How to deploy a simple neural network from A-Z in MXNet

I am trying to build and deploy a simple neural network in MXNet and deploy it on a server using mxnet-model-server. The biggest issue is to deploy the model - model server crashes after uploading the .mar file but I have no idea what the problem…
Ralf Sürig
  • 115
  • 1
  • 4
2
votes
2 answers

OSError: [WinError 126] module could not be found

I am trying to run MXNet port of SSD in python but I am facing a strange error when I run the demo saying OSError: [WinError 126] The specified module could not be found specifically when trying to open libmxnet.dll so I found when I tried to debug…
wisdom
  • 412
  • 2
  • 5
  • 20
2
votes
1 answer

MXNet - How to Prevent Full Memory Allocation

Is there any way to prevent full GPU memory allocation for MXNet? So that it only allocates what it needs and not the whole GPU memory. I want to use another model in Tensorflow/Keras on the same GPU alongside MXNet and it seems that the whole…
Cypher
  • 2,374
  • 4
  • 24
  • 36
2
votes
1 answer

OSError: libcudart.so.9.2: cannot open shared object file: No such file or directory

trying to run a script, when i get (infacepytorch) ryan@ryan-7570:/media/ryan/shakira/InsightFace_Pytorch$ python face_verify.py Traceback (most recent call last): File "face_verify.py", line 9, in from Learner import face_learner …
Ryan
  • 8,459
  • 14
  • 40
  • 66
2
votes
1 answer

MXNetError: [15:25:07] C:\Jenkins\workspace\mxnet-tag\mxnet\src\storage\storage.cc:137: Compile with USE_CUDA=1 to enable GPU usage

I'm tried to train my code with gpu in jupyter .But i don't get the right gpu. my environment is : windows10, cuda8, python3.6, mxnetgpu, jupyter . my code is: a = nd.array([1, 2, 3], ctx=mx.gpu()) But my error like this: MXNetError …
董学强
  • 87
  • 2
  • 6
2
votes
1 answer

What is the difference between cv2.imread and open().read?

I have this code: import cv2 im = cv2.imread("0.jpg") print(len(im.tobytes())) fp = open("0.jpg", 'rb') imb = fp.read() print(len(imb)) They are different! Now a function take 'imb' format as input. But I just have 'im'. I must use the cv2.imwrite…
joke
  • 43
  • 2
  • 5
2
votes
1 answer

How to define per-layer learning rate in mxnet.gluon?

I know that it is possible to freeze layers in a network for example to train only the last layers of a pre-trained model. However, I want to know is there any way to apply certain learning rates to different layers. For example, in pytorch it…
JumpyWarlock
  • 41
  • 2
  • 8