Category "tensorflow"

NotImplementedError: Cannot convert a symbolic Tensor (2nd_target:0) to a numpy array

I try to pass 2 loss functions to a model as Keras allows that. loss: String (name of objective function) or objective function or Loss instance. See losses. I

Does TensorFlow Lite for Microcontrollers support Google Edge TPU?

I already know that TensorFlow Lite (TFL) supports the Google Edge TPU, for instance through the Coral Dev Board (Linux required). However I'd like to know whet

How to insert dropout layers after activation layers in a pre-trained non-sequential model using functional keras API?

I am working on a modified resnet, and want to insert dropout after activation layers. I have tried the following but due to the model not being sequential, it

TypeError: Failed to convert elements of SparseTensor to Tensor

TypeError: Failed to convert elements of SparseTensor(indices=Tensor("DeserializeSparse:0", shape=(None, 2), dtype=int64), values=Tensor("DeserializeSparse:1",

Deep learning result graph is is limited to the average area

] You can check the Network Model and Result from the Photos. Result datas are stuck in the "average band" and can't forecasting the exact value. I used a 3ye

Is there a way to convert a list of dict back to tf.data.Dataset?

I used tfds.load to load Cityscapes dataset. The tf.data.Dataset object is enumerable and returns a dict for each enumeration. I added another value to each dic

TensorFlow static C API library - how to link with 10 sub-dependencies?

I am trying to link with static C API version of the TensorFlow library. I built the static library using the following commands: // get the sources git clone h

Tensorflow Op: how to include libtensorflow_framework.so?

I followed the instructions of this tutorial: https://www.tensorflow.org/extend/adding_an_op#implement_the_gradient_in_python. There is this comment provided: g

TypeError: <lambda>() got an unexpected keyword argument 'dtype' with keras

I am running ANFIS algorithm on iris dataset. While adding fuzzylayer to the model i am getting error like below: TypeError: <lambda>() got an unexpected

(What does the error mean?) Number of ways to split should evenly divide the split dimension, but got split_dim 1 (size = 1) and num_split 4

Recently, I have tried running a Github code but I obtained the following error: tensorflow.python.framework.errors_impl.InvalidArgumentError: Number of ways to

How should the output of my embedding layer look? Keras to PyTorch

I am in the process of translating a Keras implementation to a PyTorch one. After the full conversion my model was not converging fast enough, although the loss

use part of Keras Sequential model to predict

In the following code I have defined a Sequential model, that contains two parts conv_encoder and conv_decoder. After training the model I want to use conv_enco

In keras/ tensorflow, Is there a way to add a preprocessing layer to the output, similar to TargetTransformRegressor in sklearn?

I want to use keras to build a neural network regression model from X_train -> Y_train. In this example, however, I need to perform a preprocessing transform

No dimension mismatch for Keras sequential model?

I created a sequential neural network with Keras that has an input of 4 and an output of 8. I realize what I did was incorrect but I'm not sure as to why the co

Matrix multiplication in TensorFlow model

I want to use matrix multiplication inside TF model. My model is a NN with input shape = (1,9). And I want to get a product of this vectors by themself (i.e. I

How can I use Tensorflow.Checkpoint to recover a previously trained net

I'm trying to understand how to recover a saved/checkpointed net using tensorflow.train.Checkpoint.restore. I'm using code that's strongly based on Google's Col

Variation in Accuracy when using Image Data Generator and Loading Images individually

I have a CNN model that has already been trained. Its training and validation accuracy are around 99%. I saved this model and then loaded it to make predictions

Variation in Accuracy when using Image Data Generator and Loading Images individually

I have a CNN model that has already been trained. Its training and validation accuracy are around 99%. I saved this model and then loaded it to make predictions

Cuda Cudnn installation failed to run GPU

I have pyhton 3.8.8 V I installed tha latest version of Cuda & Cudnn: Cuda: 11.6.1_511.65 Cudnn: windows-x86_64-8.3.2.44 Installation completed successfully

TensorFlow Object Detection API - How to train on COCO dataset and achieve same mAP as the reported one?

I'm trying to reproduce the officially reported mAP of EfficientDet D3 in the Object Detection API by training on COCO using a pretrained EfficientNet backbone.