bzhong2
bzhong2
How can I change a numpy ndarray into tfrecord? Should I change the numpy matrix into string. Which decoder should I use? slim.tfexample_decoder.Tensor(). I used np.array2string to change the matrix...
The function definition is: tf.keras.backend.categorical_crossentropy( target, output, from_logits=False, axis=-1 ) But the code on line 68 is: undistorted_loss = K.categorical_crossentropy(pred, true, from_logits=True)
May I know which reference this code is based on ?