Skip to content
Advertisement

Tag: tensorflow

Select a column without “losing” a dimension

Suppose I execute the following code The shape of X[:,1] would be [100,]. That is, X[:,1].shape would yield [100,]. If I want to select the second column of X and want the resulting array to have shape [100,1], what should I do? I looked at tf.slice but I’m not sure if it’ helpful. Answer Maybe just use tf.newaxis for your

How do I install TensorFlow? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I have tried to install TensorFlow using pip install tensorflow but command prompt threw an error saying ERROR: Could not find a version that satisfies

Why TensorFlow CPU 2.7.0 is not found by docker while creating an image?

I am building a docker image, using this Dockerfile: This is the command I used: And it is giving this error: Why it can’t find tensorflow-cpu==2.7.0, when this TensorFlow version is available. What’s wrong? Here is my requirements.txt: What is not working: Just writing tensorflow in requirements.txt is also not working. Removing tensorflow from requirements.txt and adding this RUN python3.8

TensorFlow TextVectorization producing Ragged Tensor with no padding after loading it from pickle

I have a TensorFlow TextVectorization layer named “eng_vectorization”: and I saved it in a pickle file, using this code: Then I load that pickle file properly as new_eng_vectorization: Now I am expecting, both previous vectorization eng_vectorization and newly loaded vectorization new_eng_vectorization to work the same, but they are not. The output of original vectorization, eng_vectorization([‘Hello people’]) is a Tensor: And

Tensorflow Lite, Image size is zero error

Actually, my question is very simple. I would like to use my own data in tensorflow lite model. So, i wrote these line of codes: Also, this is the error that I encountered: Answer This happens when the Dataloader cannot infer the labels of your images. The images should be divided into subfolders according to the class they belong to:

Advertisement