Category "tensorflow"

Transformers model from Hugging-Face throws error that specific classes couldn t be loaded

Hi after running this code below, I get the following error. ValueError: Could not load model facebook/bart-large-mnli with any of the following classes: (<c

Multi input problem Keras. Expected to see 2 array(s), but instead got the following list of 1 arrays

I have a model that takes two inputs of the same shape (batch_size,512,512,1), and predict two masks each of shape (batch_size,512,512,1). dataset_input = tf.da

Downgrade Python version in virtual environment

I am always getting the same error regarding TensorFlow: ModuleNotFoundError: No module named 'tensorflow.contrib'. I am actually using Python version 3.9 but,

Tensorflow is partially imported

When I run a script and import Tensorflow from cmd or Visual Studio Code it throws me the error but when I run it from Anaconda prompt or Spyder it works well.

How to switch from the old to the new version of TensorFlow?

I did not use TensorFlow for a while and now, when I was starting to use it again, I have the problem with the first basic line of my code: X = tf.placeholder(n

Use Keras Neural Translation Model (h5 format model) in spacy v3

first 'im not a developer by trade, my developer is not available for health reasons but i have some experience in python/spacy development. I need some guidanc

tensorflow.python.lib.io._pywrap_file_io.BufferedInputStream(filename: str, buffer_size: int, token: tensorflow.python.lib.i

I have a problem while converting from xmls to TFrecords. Here the problem with the code !python {GTFrecords + 'generate_tfrecord.py'} -x {IMAGE_PATH + '/train'

Keras: Having trouble converting depreciated 'merge' layer to new version

I am trying to implement this model: https://github.com/abhishekkrthakur/is_that_a_duplicate_quora_question/blob/master/deepnet.py but it is from an older versi

AssertionError: Duplicate registrations for type 'experimentalOptimizer' when converting ssd model to tflite format

I was trying to convert my trained ssd model to tflite format. But I always face to this below error. error I faced Here is my code: //-------------------------

Why does Tensorflow Function perform retracing for different integer inputs to the function?

I am following the Tensorflow guide on Functions here, and based on my understanding, TF will trace and create one graph for each call to a function with a dist

Select a column without "losing" a dimension

Suppose I execute the following code W = tf.random.uniform(shape = (100,1), minval = 0, maxval = 1) Z = tf.random.uniform(shape = (100,1), minval = 0, maxval =

TensorFlow: TypeError when itterating through model architectures

I have a script which goes through a simple 2d CNN and I'm trying to run through a range of different values for the number of layers and neurons per layer in m

Weighted categorical cross entropy

please I'm trying to build an NLP classifier on top of BERT but I'm struggling with data imbalance. I'm looking for an implementation of weighted CategoricalCro

About 2D convolutions and how they produce a 1 channel image

Trying to understand 2D convolutions, I ran into the following image, which has me confused: If I understood correctly: the blue shape is the input the orange

How can I use tensorflow-privacy in SeqGAN in a right way?

i'm trying to use DPAdamGaussianOptimizer from tensorflow privacy to switch my original optimizer so i could protect privacy during the training. but when i cre

`generator` yielded an element of shape (8, 0) where an element of shape (None,) was expected. Traceback (most recent call last):

I was training a network and I decided to add more data for training. my data set is selected from another data but both have (460,620,3) and Uint8 type. but wh

Why is my Pytorch code significantly slower than Tensorflow?

I am trying to move my code from Tensorflow to Pytorch. Before doing this, I just simply test myself two frameworks. I expected two frameworks should show simil

'NoneType' object has no attribute '_inbound_nodes'

I have a code to forecast a time series using an attention mechanism. Here's what I've got so far, but I'm getting an error. def dot_product(x, kernel): if

Is there a way to change GPU / CPU on tensorflow during code execution?

I have 2 tensorflow (1.15.4) models running sequentially. The output from the first model will be fed into the second model. Is there a way to run the first mod

Lookup table in TensorFlow with key is string and value is list of strings

I would like to generate a Lookup table in TensorFlow with key is string and value is list of strings. But it seems currently no classes in tf.lookup support th