Comments (11)
Sorry, the commit 7956f2a is the latest one that supports TensorFlow 1.4.0.
You can also use the following patch codes with the latest commit:
# Create session, do not use default CheckpointSaverHook
with tf.train.MonitoredTrainingSession(
checkpoint_dir=params.output, hooks=train_hooks,
save_checkpoint_secs=None, config=config) as sess:
sess._tf_sess().run(restore_op)
while not sess.should_stop():
sess._tf_sess().run([init_op, ops["zero_op"]])
for i in range(update_cycle - 1):
sess._tf_sess().run(ops["collect_op"])
sess.run(ops["train_op"])
from thumt.
2018-04-12 13:10:28.825845: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-04-12 13:10:29.011996: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties:
name: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.7335
pciBusID: 0000:03:00.0
totalMemory: 7.92GiB freeMemory: 7.81GiB
2018-04-12 13:10:29.012047: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 2, name: GeForce GTX 1080, pci bus id: 0000:03:00.0, compute capability: 6.1)
Traceback (most recent call last):
File "thumt/bin/trainer.py", line 468, in
main(parse_args())
File "thumt/bin/trainer.py", line 461, in main
sess.run_step_fn(restore_fn)
AttributeError: 'MonitoredSession' object has no attribute 'run_step_fn'
I have encountered the same error .
from thumt.
@KelleyYin Have you solved it?
from thumt.
Upgrading TensorFlow to the latest version will eliminates this error.
from thumt.
@Playinf
Thank you for your reply.
1.The latest version of tensorflow needs cuda9.0, and my Ubuntu server is cuda8.0.
2.I saw the branch of github has updated , so what branch should I use?
from thumt.
You may find commit 2f5c288 helpful.
from thumt.
Thank you. But it failed to solve.
renhongkai at server01 in ~/project/THUMT/THUMT (2f5c288●) (py2.7)
.....
Traceback (most recent call last):
File "thumt/bin/trainer.py", line 468, in
main(parse_args())
File "thumt/bin/trainer.py", line 461, in main
sess.run_step_fn(restore_fn)
AttributeError: 'MonitoredSession' object has no attribute 'run_step_fn'
from thumt.
@Playinf Thank you very much. This problem has been solved.
from thumt.
@renhongkai Can you tell me how you solve this problem? I met the same thing 'AttributeError: 'MonitoredSession' object has no attribute 'run_step_fn''. After I use the patch code Playinf describes, it can only run 1 step and then another error ocuured.
from thumt.
@rgwt123 I have tested the patch codes under TensorFlow-1.4.0 and did not found any problems.
from thumt.
We recommend users to use the latest version of TensorFlow. We may drop the compatibility of old TensorFlow versions without notice.
from thumt.
Related Issues (20)
- what is the hparams_set for benchmark transformer model? HOT 1
- translator.py生成了空的文档,程序无报错
- 模型训练无法收敛
- pytorch version ? Providing a bool or integral fill value without setting the optional `dtype` or `out` arguments is currently unsupported. In PyTorch 1.7, HOT 2
- TypeError: Can't instantiate abstract class MapDataset with abstract methods _inputs, set_inputs HOT 1
- Question about translating with CPU
- Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! HOT 1
- In dataset Wmt17 zh-en,The result is not good as wmt14 en-de HOT 2
- 希望能出一份中文档
- 一些疑惑 HOT 2
- 训练无响应无报错
- 训练时没有生成eval文件夹,也没有在日志中输出验证信息 HOT 2
- 报错:TypeError: Expected 'Iterator' as the return annotation for `__iter__` of Dataset, but found thumt.data.iterator.Iterator HOT 1
- 请教问题
- 一些疑惑
- Code Problem and Potential Solution: Inference with CPU
- tensorflow版本target端为什么只在结束加eos,却没有在开始加bos。
- how to fine tuning with pre_trained model
- about the time for train a model HOT 5
- get_relevance出现cast float to string报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thumt.