Getting an error while trying to cast float32 to int64
TypeError: Failed to convert object of type <class ‘tensorflow.python.framework.sparse_tensor.SparseTensor’> to Tensor. Contents: SparseTensor(indices=Tensor(“F_traffic_volume/Placeholder:0”, shape=(None, 2), dtype=int64), values=Tensor(“F_traffic_volume/Placeholder_1:0”, shape=(None,), dtype=int64), dense_shape=Tensor(“F_traffic_volume/Placeholder_2:0”, shape=(2,), dtype=int64)). Consider casting elements to a supported type.
Code used :