i have a .csv file , in which 12 , 3 columns have string values and 1 have bool value now i can parse .csv file according to python model. so that tensorflow operation apply on it
def parse_csv(line): pokemon_dataset= [[0],[""], [""], [""], [0], [0], [0], [0], [0], [0], [0], [1]] line_ = tf.decode_csv(line, pokemon_dataset) pokemon_features = tf.reshape(line_[:-1], shape = (11,)) pokemon_label = tf.reshape(line_[:-1] , shape = ()) return pokemon_features,pokemon_label
i can parse like this but compiler generate error
TypeError: Cannot convert a list containing a tensor of dtype <dtype: 'string'> to <dtype: 'int32'> (Tensor is: <tf.Tensor 'DecodeCSV:1' shape=() dtype=string>)
Example of line is missing to guess what causes it.
??? i don't understand
You feed line to parse_csv function, right?
yeah
Without it, who can have clear image of your problem? You are asking something about result without showing example of cause, that is missing piece.
okay boss i will share you my code
Please review and modify your question to make it standalone. I’m considering publicity of this question. If you don’t take care about it, then it should be paid-support in my personal opinion.
i'm concern answer of my question , you can publish it where you want ...... enjoy
:)
OK, our motivations are not crossed unfortunately. Thanks, enjoy your time. :)
no problem
あなたの回答
tips
プレビュー