Commit 3d64bf0c authored by 宋柯's avatar 宋柯

模型调试

parent bf69fbe1
...@@ -1116,11 +1116,11 @@ if __name__ == '__main__': ...@@ -1116,11 +1116,11 @@ if __name__ == '__main__':
output_file = "/data/files/wideAndDeep/train_samples.tfrecord" output_file = "/data/files/wideAndDeep/train_samples.tfrecord"
train_samples = train_samples.rdd.map(get_example_string).collect() train_samples_arr = train_samples.rdd.map(get_example_string).collect()
train_samples.unpersist(True) train_samples.unpersist(True)
writer = tf.io.TFRecordWriter(output_file) writer = tf.io.TFRecordWriter(output_file)
for train_sample in train_samples: for train_sample in train_samples_arr:
writer.write(train_sample) writer.write(train_sample)
writer.close() writer.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment