I have a computer with the windows operating system with an amd gpu (rx 5600 xt), and I want to run tensorflow on the gpu. I found "tensorflow-directml" which allows me to run tensorflow on my gpu, but it uses tensorflow 1.14.0. Is there another version of "tensorflow-directml" that uses tensorflow v2, or is there ..
I want to train a model, and use it on another computer. Want to save the model. how I should save the model? this is enough? model.save(‘model.h5’) And when its training is complete, How I should use it on another computer? All of my systems are based on windows. Thank you. Source: Python..
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. Trying to run a program that uses the Tensorflow library and I get this error on PyCharm IDE for macOS. ..
am using google colab ,tensorflow 1.13.1 and keras 2.2.4 to train Unet CNN model, i changed the accelerator to GPU via runtime/change runtime type then when am checking if GPU used via the above line of code it shows that no GPU used, how can i fix this. [enter image description here] : https://i.stack.imgur.com/7XNRC.png Source: ..
I have trained a BERT model using ktrain (tensorflow wrapper) to recognize emotion on text, it works but it suffers from really slow inference. That makes my model not suitable for a production environment. I have done some research and it seems pruning could help. Tensorflow provides some options for pruning e.g. tf.contrib.model_pruning. The problem ..
I’m trying to learn by working on the example given on the the Keras website I have a solid grasp on basic seq2seq, but Im struggling to understand how to implement an attention mechanism. Source: Python..
When I’m running a python script with tensorflow 2.3 (Linux os), my script crashes with SIGSEGV. It didn’t happen with tensorflow 2.0. There is no informative message, nothing. Does anybody know what can I do? Thanks! Source: Python-3x..
While I was training my cnn I got this error about tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 1622400 values, but the requested shape requires a multiple of 14400 [[node sequential/flatten/Reshape (defined at /train.py:147) ]] [Op:__inference_train_function_1558] Function call stack: train_function But I don’t really know which part is the error coming from. I think ..
I am running a simple Pix2Pix Model in TF1.12 (do not suggest to upgrade my TF) and getting this error. Traceback (most recent call last): File "tf_pix2pix.py", line 262, in <module> gan.train(epochs=15, batch_size=8, sample_interval=200) File "tf_pix2pix.py", line 205, in train self.generator_optimizer.apply_gradients(zip(generator_gradients, AttributeError: ‘Adam’ object has no attribute ‘apply_gradients’ In my code, I have initialized the ..
I created this model from tensorflow.keras.layers import Conv2D from tensorflow.keras.layers import MaxPooling2D, Input, Dense from tensorflow.keras.layers import Reshape, Flatten from tensorflow.keras import Model def create_DeepCAPCHA(input_shape=(28,28,1),n_prediction=1,n_class=10,optimizer=’adam’, show_summary=True): inputs = Input(input_shape) x = Conv2D(filters=32, kernel_size=3, activation=’relu’, padding=’same’)(inputs) x = MaxPooling2D(pool_size=2)(x) x = Conv2D(filters=48, kernel_size=3, activation=’relu’, padding=’same’)(x) x = MaxPooling2D(pool_size=2)(x) x = Conv2D(filters=64, kernel_size=3, activation=’relu’, padding=’same’)(x) x = ..