ho provato: appareCome convertire tf.int64 in tf.float32?
test_image = tf.convert_to_tensor(img, dtype=tf.float32)
Poi seguente errore:
ValueError: Tensor conversion requested dtype float32 for Tensor with dtype int64: 'Tensor("test/ArgMax:0", shape=TensorShape([Dimension(None)]), dtype=int64)'
Va notato che tf non può calcolare gradienti per queste operazioni, in modo che non può essere utilizzato per simulare pesi quantizzati. – oarfish