代码之家  ›  专栏  ›  技术社区  ›  Paul Reiners

张量流中的指数表示法

  •  0
  • Paul Reiners  · 技术社区  · 7 年前

    我得到了下面的错误,因为一个浮点值包含在使用指数表示法的CSV文件中。

    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.0]
    

    我该怎么解决?并非所有的值都必须使用“E”符号。

    0 回复  |  直到 7 年前
    推荐文章