pointer-generator icon indicating copy to clipboard operation
pointer-generator copied to clipboard

Tensorflow 1.5

Open scigeek72 opened this issue 7 years ago • 6 comments

Hi, I am interested to use your model for our project. But we have the current tensorflow (1.5). But from reading the README, it seems that the code is optimized for Tensorflow version 1.2.1. I want to know if this is going to work on our version of Tensorflow or do we need to downgrade to that specific version.

Thanks,

Tridib

scigeek72 avatar Feb 06 '18 23:02 scigeek72

Hi @scigeek72 , If you are still looking for a TF 1.5 version of this code, you can check my fork, where I upgrade the code to work on TF 1.5 and Python 3, to test it on new dataset (so working with the same model proposed in the readme file)

victorherbemontagne avatar Mar 23 '18 10:03 victorherbemontagne

Just for convenience https://github.com/victorherbemontagne/pointer-generator

borgr avatar Aug 16 '18 12:08 borgr

The main change for Tensorflow 1.5 is below.

https://stackoverflow.com/questions/49206318/typeerror-unsupported-operand-types-for-int-and-flag

However when trying to train with coverage enabled in Python 3 with becxer fork and also in the above mentioned fork it hangs after this.

INFO:tensorflow:Starting standard services. INFO:tensorflow:Saving checkpoint to path ./pg_log/pg_coverage/train/model.ckpt INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:Starting queue runners. INFO:tensorflow:Created session. INFO:tensorflow:starting run_training INFO:tensorflow:running training step...

kailasdayanandan avatar Jan 17 '19 16:01 kailasdayanandan

The main change for Tensorflow 1.5 is below.

https://stackoverflow.com/questions/49206318/typeerror-unsupported-operand-types-for-int-and-flag

However when trying to train with coverage enabled in Python 3 with becxer fork and also in the above mentioned fork it hangs after this.

INFO:tensorflow:Starting standard services. INFO:tensorflow:Saving checkpoint to path ./pg_log/pg_coverage/train/model.ckpt INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:Starting queue runners. INFO:tensorflow:Created session. INFO:tensorflow:starting run_training INFO:tensorflow:running training step...

excuse me,have you solve the problem?

nozomi233 avatar Aug 28 '19 06:08 nozomi233

The main change for Tensorflow 1.5 is below.

https://stackoverflow.com/questions/49206318/typeerror-unsupported-operand-types-for-int-and-flag

However when trying to train with coverage enabled in Python 3 with becxer fork and also in the above mentioned fork it hangs after this.

INFO:tensorflow:Starting standard services. INFO:tensorflow:Saving checkpoint to path ./pg_log/pg_coverage/train/model.ckpt INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:Starting queue runners. INFO:tensorflow:Created session. INFO:tensorflow:starting run_training INFO:tensorflow:running training step...

I have the same problem, have you solve the problem?

ZhichaoOuyang avatar Oct 01 '19 04:10 ZhichaoOuyang

If you want to run it then you can install TF 1.2.1 using this in a venv

pip install --ignore-installed --upgrade https://github.com/mind/wheels/releases/download/tf1.2.1-gpu/tensorflow-1.2.1-cp36-cp36m-linux_x86_64.whl

and it will run TF 1.2.1 on GPU with

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2017 NVIDIA Corporation Built on Fri_Sep__1_21:08:03_CDT_2017 Cuda compilation tools, release 9.0, V9.0.176

yashkumaratri avatar Oct 14 '19 19:10 yashkumaratri