TensorFlow中的指数表示法

时间:2018-06-18 21:02:01

标签: python tensorflow

我收到以下错误,因为CSV文件中包含使用指数表示法的浮点值。

CURRENT_DATE

我在字段默认值中使用以下内容:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Field 1 in record 0 is not a valid float: 9.403954980927348E-39
     [[Node: DecodeCSV = DecodeCSV[OUT_TYPE=[DT_STRING, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_INT64, DT_FLOAT, DT_FLOAT, DT_FLOAT], field_delim=",", na_value="", use_quote_delim=true](arg0, DecodeCSV/record_defaults_0, DecodeCSV/record_defaults_1, DecodeCSV/record_defaults_2, DecodeCSV/record_defaults_3, DecodeCSV/record_defaults_4, DecodeCSV/record_defaults_5, DecodeCSV/record_defaults_6, DecodeCSV/record_defaults_7, DecodeCSV/record_defaults_8, DecodeCSV/record_defaults_9, DecodeCSV/record_defaults_10, decodecsv_placeholder, decodecsv_placeholder_1, decodecsv_placeholder_2, DecodeCSV/record_defaults_14, DecodeCSV/record_defaults_15, DecodeCSV/record_defaults_16, decodecsv_placeholder_3, DecodeCSV/record_defaults_18, DecodeCSV/record_defaults_19, DecodeCSV/record_defaults_20)]]
     [[Node: IteratorGetNext = IteratorGetNext[output_shapes=[[?], [?], [?], [?], [?], [?], [?], [?], [?]], output_types=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_INT64], _device="/job:localhost/replica:0/task:0/device:CPU:0"](OneShotIterator)]]

我该如何解决这个问题?并非所有值都必须使用此符号'。

0 个答案:

没有答案
相关问题