Questions tagged [cntk]

Microsoft Cognitive Toolkit (CNTK) is an open source library for commercial-grade distributed deep learning. It became open source in January 2016. In March, 2019, Microsoft announced that version 2.7 was to be the last release of CNTK.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
29 views

How to create input data for a recurrent network in CNTK (C#)?

I need to create data for a mini-batch with shape: (5(input_vector), 50(sequence_length), 100(amount_of_input_sequences)), in order to run 100 instances of input data for a recurrent neural network in ...
Христиан Белов's user avatar
1 vote
0 answers
65 views

How can I make CNTK solve the XOR problem?

I'm trying to make an implementation of a XOR in CNTK in C#. I followed the example here: https://github.com/microsoft/CNTK/blob/release/latest/Examples/TrainingCSharp/Common/LogisticRegression.cs , ...
Христиан Белов's user avatar
0 votes
0 answers
163 views

Google Colab cntk import error: ModuleNotFoundError: No module named 'cntk._cntk_py'

The code I run are as follows: (link:https://colab.research.google.com/drive/1RBbhOx4XHOe8lCwHgwhGs12WcVBz_Vzu#scrollTo=pGCXryUwL949&uniqifier=6) !sudo update-alternatives --config python3 !sudo ...
Haoming Yu's user avatar
0 votes
1 answer
210 views

error Installing CNTK for Python 3.9 on anaconda

I want to install CNTK with anaconda prompt (Python version 3.9.12) I used following command: pip install https://cntk.ai/PythonWheel/GPU/cntk_gpu-2.7.post1-cp36-cp36m-win_amd64.whl and got this ...
user3772796's user avatar
0 votes
1 answer
1k views

AttributeError: 'DataFrame' object has no attribute '_data' [Not a duplicate]

I was trying to run the main.py but it threw an error about attribution. My Python version is Python 3.5. I am using the CNTK Docker release 2.6-cpu-python3.5. I cannot update the Python version ...
Hanson Deck's user avatar
0 votes
1 answer
390 views

How to use two different Python Versions in the same File or Project?

I have written some code in cntk, which needs Python Version 3.6 or older. The problem is that I want to use this code in a Project, which only allows Python 3.8 or newer. What's the best solution to ...
making's user avatar
  • 1
0 votes
1 answer
40 views

Getting multiple variables in TensorFlow and other frameworks (overheads)

If I have the following graph and want to get the values of tensors T1 and T2 in TF without eager execution, how would I do this? I only know of eval() or session.run() (running that twice could be an ...
f.k's user avatar
  • 85
1 vote
1 answer
438 views

CNTK NVidia RTX 3060 Cublas Failure 13 with layers larger than 512

I have a LSTM network with 2000 neurons in CNTK 2.7 using EasyCNTK C# which is working fine with CPU and with Gigabyte NVidia RTX 2060 6GB, but with Gigabyte NVidia RTX 3060 12GB I get this error if I ...
Mario's user avatar
  • 14.2k
1 vote
2 answers
335 views

How to save CNTK model as ONNX in C#

The only function I know to save a trained model is trainer.SaveCheckpoint which can save the CNTK model, but I cannot find how to save the model to ONNX format in C# On the documentation site here ...
Mario's user avatar
  • 14.2k
1 vote
1 answer
382 views

Error installing CNTK on win10 via scripted install

I have been trying to install the CNTK via scripted install on windows 10 and have come across a strange error. I got the install from https://learn.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-...
MrSmith's user avatar
  • 84
0 votes
1 answer
111 views

why Installed module in python throws error

I installed cntk module in my system but whenever I try to run a code it says no module found import cntk as C ModuleNotFoundError: No module named 'cntk'
Jacob Gokul's user avatar
1 vote
1 answer
537 views

Throw exception 'cuDNN failure 8: CUDNN_STATUS_EXECUTION_FAILED' in training ONNX's pretrained model Emotion FerPlus

I am testing to train Emotion FerPlus emotion recognition model. Training has cuDNN failure 8: CUDNN_STATUS_EXECUTION_FAILED error. I am using Nvidia GPU TitanRTX 24G. Then change the minibatch_size ...
batuman's user avatar
  • 7,132
0 votes
0 answers
319 views

How to use CNTK as the backend of Keras on Google Colab?

After I set the backend of Keras to CNTK on Google Colab, getting the following warning and error despite I do not get any issues when I use TensorFlow or Theano as the backend of Keras: /usr/local/...
talha06's user avatar
  • 6,296
0 votes
1 answer
317 views

When will CNTK wheel be released for Python 3.7?

I wanted to use cntk for anaconda,but on microsoft there is only link provided uptil version 3.5. Is there any othetr way around that I can use cntk without downgrading python?
K Sarda's user avatar
0 votes
0 answers
306 views

install CNTK on server

I am installing cntk on my server. (Only CPU version) python version is 3.6.6 mpirun -V mpirun (Open MPI) 3.1.1 I follow the instructions here and it is ok. pip install https://cntk.ai/...
ph0123's user avatar
  • 7
0 votes
1 answer
120 views

Are there syntax differences between using Keras with a Tensorflow 2, Theano, or CNTK backend?

It looks like tf.keras is suggested if you're using a Tensorflow 2 backend, but what about using Theano or CNTK as a backend? I have never used Keras or any DL library.
Steven Richter's user avatar
0 votes
1 answer
35 views

CNTK: ->Forward or ->Evaluate crash on some PCs, not on others

I am evaluating various neural networks created with CNTK from C++. Some are essentially AlexNet, others are V3-inception. Everything runs fine on dozens and dozens of PCs. But I have found two ...
Tullhead's user avatar
  • 575
11 votes
1 answer
1k views

Why are deep learning libraries so huge?

I've recently downloaded all packages from PyPI. One interesting observation was that of the Top-15 of the biggest packages, all execept one are deep learning packages: mxnet: mxnet-cu90 (600 MB), ...
Martin Thoma's user avatar
2 votes
0 answers
202 views

Using CNTK from F#

I am trying to use CNTK from F#, I have added Cntk.Core.Managed-2.7 to my project (.NET framework 4.7.2 also tried under 4.5.0) I only have the following code in Program.cs let main argv = ...
pacta_sunt_servanda's user avatar
0 votes
1 answer
44 views

Convert cntk model v1 to cntk model v2

I have trained a model using cntk brain script. I then needed to use my model in python. The problem is that models saved using brainscript are v1 models and have input nodes and output nodes saved. ...
Reem Gody's user avatar
0 votes
0 answers
50 views

Problem with defining softmax user function in cntk python api

I was following the cntk tutorial here https://github.com/microsoft/CNTK/tree/master/Examples/Speech/AN4/Python I wanted to update to manipulate the SoftMax function, so that I can implement a ...
Reem Gody's user avatar
1 vote
0 answers
69 views

CNTK on Azure Function

I have simple azure function public async Task Run( [ServiceBusTrigger( "%TopicName%", "%SubscriptionName%", Connection = "ServiceBusConnection")] Message input, ...
Jevgenij Nekrasov's user avatar
0 votes
1 answer
2k views

How to use Colab with Ubuntu 16?

I'm trying out CNTK on Google Colab, and Colab runs on Ubuntu 18. However, CNTK requires OpenMPI 1.10.x, but this version of OpenMPI is only available on Ubuntu 16. Is it possible to switch Colab to ...
Dan D.'s user avatar
  • 7,757
1 vote
1 answer
346 views

Trouble implementing custom Negative Log-Likelihood loss in pet example

I am using a pet example to optimize the parameters of a dense layer connected to a softplus and outputing the parameters of a negative binomial distribution. My process has been: 1) Build a custom ...
João Francisco Santos's user avatar
0 votes
1 answer
28 views

Getting argument data's type Tensor[3,850,850] is incompatible with the type Tensor[3,370,1224] of the passed Variable on cntk

I am getting argument data's type Tensor[3,850,850] is incompatible with the type Tensor[3,370,1224] of the passed Variable error when running cntk's Fast RCNN sample code. Sometime the number in ...
user2257636's user avatar
3 votes
0 answers
251 views

CNTK add a Bidirectional LSTM Layer

From here: Tutorial I am asking how C# could implement such a function: In Brainscript: BiRecurrentLSTMLayer {outDim} = { F = RecurrentLSTMLayer {outDim, goBackwards=false} G = ...
Rusty Nail's user avatar
  • 2,712
1 vote
0 answers
196 views

I can't load pretrained CNTK model on C#

I use Microsoft CNTK technology to create a simple neural network. I managed to train the network, but I have problems with saving the model to a file and then loading it. Step-by-step First run ...
ValeriyV's user avatar
1 vote
1 answer
762 views

Installing CNTK on Ubuntu 18.04 for Python 3.6

I have installed CNTK on my ubuntu 18.04 for python 3.6 using pip. However, once I execute simple test, I'm getting an error. Simple installation test: python3.6 -c "import cntk; print(cntk....
mhn_namak's user avatar
  • 453
0 votes
0 answers
48 views

Keras 2.2.4 runs slowly with backend cntk-gpu version 2.5.1

everyone. I have a problem when I use Keras with backend cntk-gpu version 2.5.1. For some reason, I have to use cntk-gpu 2.5.1 as Keras backend and I have a piece of code with the core code as ...
ming yan's user avatar
0 votes
1 answer
109 views

CNTK: "inferred dimension cannot be calculated from input and new shape size."

I've set up a model for CIFAR-10 using Pytorch, and saved it as an ONNX file. But it looks like I can't load it from CNTK. I've already loaded another ONNX file from the same source code (by mistake)...
Poc's user avatar
  • 129
0 votes
1 answer
58 views

CNTK Python API: access layers after loading model

I can not access layers after loading the model. I created the model as follows: def create_model(vocab_dim, hidden_dim): input_seq_axis1 = Axis('inputAxis1') input_sequence_before = ...
Andrey's user avatar
  • 6,114
2 votes
0 answers
121 views

Transfer learning with CNTK and pre-trained ONNX model fails

I'm trying to use the ResNet-50 model from the ONNX model zoo and load and train it in CNTK for an image classification task. The first thing that confuses me is, that the batch axis (not sure what's ...
Christian Vorhemus's user avatar
-1 votes
1 answer
73 views

CNTK CMD RedirectStandardOutput = true not working

Microsoft have dropped CNTK for ML.NET ( Horrible product ) and ONNX ( Not yet looked at it ). CNTK, best product Microsoft have Open Sourced, but lots of Bugs and Zero Support, sadly! I reluctantly ...
Rusty Nail's user avatar
  • 2,712
1 vote
1 answer
23 views

CNTK sends an error regarding 'sequence.gather' operator

I am trying to create a model with 'sequence.gather' operator, but getting an error "Where operation can only operate on scalar input" when calling 'train_minibatch'. input_seq_axis = Axis('inputAxis'...
Andrey's user avatar
  • 6,114
19 votes
1 answer
5k views

Has Microsoft abandoned CNTK?

I want to know if CNTK dead? Release notes on GitHub dated 03/31/2019: "Today’s 2.7 release will be the last main release of CNTK." I've spent months developing software using CNTK and now it appears ...
rwbta's user avatar
  • 191
0 votes
1 answer
235 views

RuntimeError: Failed to parse Dictionary from the input stream

I'm completely new to cntk. I recently installed cntk 2.7 (GPU version) on my pc (windows 10,i5-7200U CPU) with GeForce 940MX GPU. I'm trying to set up cntk and the faster rcnn object-detection ...
Abhishek Kumar's user avatar
1 vote
1 answer
94 views

CNTK Trainer for multiple Outputs

In the situation where CNTK has multiple Output Layers, should one Train with multiple Trainers? List<Learner> learnersA = new List<Learner>() { Learner.SGDLearner(OutputLayerOne....
Rusty Nail's user avatar
  • 2,712
0 votes
1 answer
308 views

Windows application on Nvidia TX2?

I have code developed for windows 10 ( C++, GDI+, CNTK) that I wish to run on Nvidia TX2. Is it possible? Or must port to Linux?
Tullhead's user avatar
  • 575
3 votes
2 answers
145 views

How to feed data from a numpy array to train a CNTK regression model

I generated some random values inside a 1D numpy array and I'm trying to feed this data into a CNTK model I've created (codes below) to train it. But I'm getting different errors according my approach....
Henrique's user avatar
  • 338
0 votes
1 answer
111 views

CNN Model overfitting and not learning correctly from OpenCV sequences when learning games

I'm trying to get a Convolution Neural Network up and running to be able to play the old NES Ice Climbers. Right now I have utilized OpenCV to capture the screen for inputs and the output is the ...
Trent Gillson's user avatar
1 vote
1 answer
132 views

How to run Neural network developed in CNTK on a Azure Sphere board

I have a neural network developed using CNTK and I am looking for a way to have that neural network deployed on a Azure Sphere device. The network is an ANN and is not that compute intensive. Can ...
Sam's user avatar
  • 13
1 vote
1 answer
237 views

CNTK basic operation with c# following python example gives error

at this moment I'm struggling to not desperate just trying to convert this (from https://cntk.ai/pythondocs/gettingstarted.html#overview-and-first-run) cntk.minus([1, 2, 3], [4, 5, 6]).eval() which ...
user3086707's user avatar
2 votes
1 answer
206 views

CNTK Input Data Structure for example: CSTrainingCPUOnlyExamples

I am using the Example of CNTK: LSTMSequenceClassifier via the Console Application: CSTrainingCPUOnlyExamples, using the default data file: Train.ctf, it looks like this: The Input Layer is dimension:...
Rusty Nail's user avatar
  • 2,712
0 votes
1 answer
170 views

CNTK C# - Connect output to specific layer input

I need to create 10 neurons each with 2 inputs. Each of these has an output that should be connected to a layer that has 10 inputs and an output. My definition of input neurons: Function in1 = Util....
Rick's user avatar
  • 1,052
0 votes
0 answers
192 views

CNTK Low GPU utilisation training via C++ API

I've written some fairly standard CNTK code to train a simple feed forward network using the C++ API. During training I get a speed up of about 4 times using GPU over CPU (CPU is 100% utilised) but ...
Rod's user avatar
  • 21
0 votes
1 answer
1k views

Source path inside jupyter notebook to other files

From a jupyter notebook, I would like to set up a location to other files already uploaded in Jupyter. Here’s the code, I guess the line which is wrong is the first one: location = os.path.normpath(...
user avatar
0 votes
0 answers
263 views

How do I access the weights and layers of a pre-existing model using CNTK with C#?

Using CNTK and C#, I'd like to create class activation maps (CAM). My model is a densenet model exported from Keras(Tensorflow backend) in ONNX format and I'm importing this in my Windows C# console ...
user2646187's user avatar
0 votes
1 answer
51 views

Can one mix data types in CNTK ElementSelect?

I'm trying to do the following in CNTK (in C#): a = ElementSelect(x, y, z); expecting something equivalent to a[i] = (x[i] != 0 ? y[i] : z[i]). However, for various reasons, x is Int8 whereas y and ...
Rafe's user avatar
  • 5,247
1 vote
0 answers
69 views

Using Multiple GPUs (CNTK) with C++ cntk

I use the CNTK library for learning LSTM on a single CPU or GPU. I do not understand how to change my code and run training on multiple GPUs (CPU). My current code is: labels = InputVariable({ ...
Acrobat's user avatar
  • 11
0 votes
3 answers
300 views

what is difference between CNTK and WIN ML

I know my question is basic one but I need some clarification. CNTK is deep learning framework which I currently use, can be used to train and evaluate models on windows machine. If I want to run my ...
hariprasad's user avatar

1
2 3 4 5
11