Relative Content

Tag Archive for pythontensorflow

“Bus error” When importing tensorflow into python

When trying to import tensorflow into a python script I get the following error: “Bus Error”. I am using Ubuntu 22.04.5 LTS, tensorboard 2.13.0 and, tensorflow 2.13.1. (For a full picture) This runs on a le-potato.

“Bus error” When importing tensorflow into python

When trying to import tensorflow into a python script I get the following error: “Bus Error”. I am using Ubuntu 22.04.5 LTS, tensorboard 2.13.0 and, tensorflow 2.13.1. (For a full picture) This runs on a le-potato.

Issue with TensorFlow Privacy

I am testing an example code from the TensorFlow website using Jupyter Notebook. You can find the code at the following link:

How can I fill specific positions of a vector by another vector in TensorFlow

I have a matrix called U_complex with size (None, 92), where None is equivalent to the batch_size used during the training (let’s say it’s 1000), I want to create another matrix called mask with size (None, 128), then fill the mask (None, 0:4:128) and mask(None, 1:32:128) by zeros while all other values should be filled by the matrix of U_complex.

from google.protobuf import runtime_version as runtime_version ImportError: cannot import name ‘runtime_version’ from ‘google.protobuf’

!python {SCRIPTS_PATH + ‘/generate_tfrecord.py’} -x {IMAGE_PATH + ‘/train’} -l {ANNOTATION_PATH + ‘/label_map.pbtxt’} -o {ANNOTATION_PATH + ‘/train.record’} !python {SCRIPTS_PATH + ‘/generate_tfrecord.py’} -x{IMAGE_PATH + ‘/test’} -l {ANNOTATION_PATH + ‘/label_map.pbtxt’} -o {ANNOTATION_PATH + ‘/test.record’} when i tried to run that code, i have some errors. error message : from google.protobuf import runtime_version as runtime_version ImportError: cannot import name […]

Tensorflow Understanding Conv2D

Beginner using Tensorflow. Started reading the documentation and checking the examples provided in the website:
https://www.tensorflow.org/api_docs/python/tf/keras/layers/Conv2D
https://www.tensorflow.org/tutorials/images/cnn