Commit fd274f86 authored by Your Name's avatar Your Name

bug fix

parent d2540fea
...@@ -142,7 +142,7 @@ def input_fn(filenames, batch_size=32, num_epochs=1, perform_shuffle=False): ...@@ -142,7 +142,7 @@ def input_fn(filenames, batch_size=32, num_epochs=1, perform_shuffle=False):
#print(batch_features,batch_labels) #print(batch_features,batch_labels)
return batch_features, batch_labels return batch_features, batch_labels
def main(): def main(_):
dt_dir = (date.today() + timedelta(-1)).strftime('%Y%m%d') dt_dir = (date.today() + timedelta(-1)).strftime('%Y%m%d')
model_dir = "/home/gmuser/esmm/model_ckpt/DeepCvrMTL/" + dt_dir model_dir = "/home/gmuser/esmm/model_ckpt/DeepCvrMTL/" + dt_dir
te_files = ["hdfs://172.16.32.4:8020/strategy/esmm/nearby/part-r-00000"] te_files = ["hdfs://172.16.32.4:8020/strategy/esmm/nearby/part-r-00000"]
...@@ -202,8 +202,8 @@ if __name__ == "__main__": ...@@ -202,8 +202,8 @@ if __name__ == "__main__":
# rdd_te_files = spark.sparkContext.parallelize(te_files) # rdd_te_files = spark.sparkContext.parallelize(te_files)
# indices = rdd_te_files.repartition(2).map(lambda x: main(x)) # indices = rdd_te_files.repartition(2).map(lambda x: main(x))
# print(indices.collect()) # print(indices.collect())
tf.app.run()
main()
b = time.time() b = time.time()
print("耗时(分钟):") print("耗时(分钟):")
......
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