Convert a tensor to numpy array in Tensorflow?
How to convert a tensor into a numpy array when using Tensorflow with Python bindings?
How to convert a tensor into a numpy array when using Tensorflow with Python bindings?
Hi I have been trying to make a custom loss function in keras for dice_error_coefficient. It has its implementations in tensorboard and I tried using the same function in keras with tensorflow but it keeps returning a NoneType when I used model.train_on_batch or model.fit where as it gives proper values when used in metrics in the model. Can please someone help me out with what should i do? I have tried following libraries like Keras-FCN by ahundt where he has used custom loss functions but none of it seems to work. The target and output in the code are y_true and y_pred respectively as used in the losses.py file in keras.
Suppose you need to make an activation function which is not possible using only pre-defined tensorflow building-blocks, what can you do?
So I’ve been following Google’s official tensorflow guide and trying to build a simple neural network using Keras. But when it comes to training the model, it does not use the entire dataset (with 60000 entries) and instead uses only 1875 entries for training. Any possible fix?
I’ve implemented a neural network using tensor flow and it appears to be only running on 1/32 data points. I’ve then tried to following simple example to see if it was me: https://pythonprogramming.net/introduction-deep-learning-python-tensorflow-keras/ Even when using identical (copied and pasted) code I still get 1/32 of the training data being processed e.g. Epoch 3/3 1875/1875 … Read more
I have a plan to use distributed TensorFlow, and I saw TensorFlow can use GPUs for training and testing. In a cluster environment, each machine could have 0 or 1 or more GPUs, and I want to run my TensorFlow graph into GPUs on as many machines as possible.
I have fine-tuned inception model with a new dataset and saved it as “.h5” model in Keras. now my goal is to run my model on android Tensorflow which accepts “.pb” extension only. question is that is there any library in Keras or tensorflow to do this conversion? I have seen this post so far : https://blog.keras.io/keras-as-a-simplified-interface-to-tensorflow-tutorial.html but can’t figure out yet.
What is the difference between ‘SAME’ and ‘VALID’ padding in tf.nn.max_pool of tensorflow?
Classification problems, such as logistic regression or multinomial
logistic regression, optimize a cross-entropy loss.
Normally, the cross-entropy layer follows the softmax layer,
which produces probability distribution.
I’ve recently reviewed an interesting implementation for convolutional text classification. However all TensorFlow code I’ve reviewed uses a random (not pre-trained) embedding vectors like the following: