Questions tagged [tensorflow1.15]

76 questions
6
votes
0 answers

RuntimeError: `loss` passed to Optimizer.compute_gradients should be a function when eager execution is enabled. Working with Tensorflow 1.15

I am trying to train a model using tensorflow 1.15 with eager execution enabled. For train loss I am using train loss = mse_loss*args.lmbda + bits_per_pixel_loss I've defined the optimizer as below main_optimiser =…
5
votes
1 answer

Equivalent of tf.contrib.legacy_seq2seq.attention_decoder in tensorflow 2 after upgrade

I have the following code in TensorFlow 1.0. I tried to migrate it to TensorFlow 2.0 using tf_upgrade_v2 script. However, it didnt find an equivalent function in the tf-2 compact version. I was recommended to use tensorflow_addons. However, I dont…
2
votes
0 answers

No matching distribution found for tensorflow==1.15.2 in Google Colab

import tensorflow print(tensorflow.__version__) 2.9.2 pip uninstall tensorflow pip install tensorflow==1.15.2 Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ ERROR: Could not find a version that…
2
votes
0 answers

Installing tensorflow 1.x on Google colab (december 2022)

I have custom google colab notebooks that require tensorflow-gpu==1.15. To install such version, last week I only had to run a cell containing !pip install --upgrade tensorflow-gpu==1.15 and its output logs were Looking in indexes:…
Aure
  • 31
  • 1
  • 5
2
votes
0 answers

shinyapps.io doesn't support tensorflow 1

I am using the reticulate package to run TensorFlow 1.15 in the R code. I also created my same code on shiny app. When I try to deploy and share it through shinyapps.io, i got the error below. ERROR: Could not find a version that satisfies the…
Melih Aras
  • 369
  • 1
  • 9
2
votes
1 answer

Installing version 1.15 of tensorflow-serving-api to Centos 8

I am trying to install Tensorflow-serving to my Centos 8 machine. Installing with Docker image is not an option for Centos. So I try to install with pip. These are the commands for installing tensorflow-model-server: pip3 install…
2
votes
1 answer

NewRandomAccessFile failed to Create/Open: output_inference_graph_v1.pb : Access is denied

Please read it through. This is not a duplicate of Tensorflow Windows Accessing Folders Denied:"NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error", as I have previously verified if there was an error with my file…
rzimmerdev
  • 89
  • 1
  • 9
2
votes
0 answers

How to add random noise to the labels using DNNLinearCombinedClassifier for tf1.15?

Currently, I am working with the wide and deep classifier in tf1.15 (DNNLinearCombinedClassifier), and defined the following function to add random noise to the labels: def add_random_noise(labels): labels = tf.dtypes.cast(labels, tf.float32) …
ssierral
  • 8,537
  • 6
  • 26
  • 44
2
votes
1 answer

How to *correctly* read data from csv's into TensorFlow 1

I came across this so posting showing us how to setup the code to read in csv files using a queue. However, each time I run it, I run into an error. I've tried debugging it, but can't figure out what the error means. Can anyone help me out? The code…
Link
  • 319
  • 4
  • 12
1
vote
0 answers

Failed to evaluate CNN Model (MobileNet V3) with eval.py

I built a Machine Learning Model with Tensorflow CNN (MobileNetV3), with around 1000 images (one image contains multiple objects), 80 classes, and with 1024x1024 pixels per image. I was using 50000 epoch to train the model. When I finished the…
1
vote
1 answer

Get memory usage after each training epoch - Tensorflow version 1.15

I am using code that requires tensorflow version 1.15. However, I would like to record the amount of memory used after each training epoch of a BERT model. In tensorflow version 2, this can be achieved by tf.config.experimental.get_memory_usage. How…
yama
  • 17
  • 3
1
vote
1 answer

couldn't downgrade tensorflow in colab (just version 2 is available)

Colab does not allow to downgrade TensorFlow and says that only versions 2 is available. here is code and output: !pip install tensorflow-gpu==1.15.2 import tensorflow as tf print(tf.__version__) output: Looking in indexes: https://pypi.org/simple,…
s.pakdel
  • 11
  • 2
1
vote
0 answers

(Tensorflow 1.14) Not able to convert saved_model.pb and variables in to frozen_inference_graph.pb

I am using tensorflow=1.14. During periodic evaluation, I save best model using tf.estimator.BestExporter. I have following questions. 1) When I try to convert saved_model.pb stored by BestExporter during training to frozen graph using…
1
vote
4 answers

How could I convert Tensorflow version 1 to onnx model?

I tried python -m tf2onnx.convert --saved-model [file_name] --output [onnx_file_name]. but It is run by tensorflow = 2.4.4 automatically. I want to run tensorflow version 1 code. Is this code have a option of it?
seawavve
  • 41
  • 4
1
vote
1 answer

Define a tensor of constants for tf.while_loop

I want to somehow maintain a list of constants in tf.while_loop that can support the following functions I am able to read and write (multiple times) a constant value at an index I am able to run tf.cond on it by checking its value at an index vs…
Sid Anand
  • 167
  • 1
  • 10
1
2 3 4 5 6