Git Product home page Git Product logo

Comments (11)

Playinf avatar Playinf commented on August 23, 2024 1

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.

KelleyYin avatar KelleyYin commented on August 23, 2024

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.

renhongkai avatar renhongkai commented on August 23, 2024

@KelleyYin Have you solved it?

from thumt.

Playinf avatar Playinf commented on August 23, 2024

Upgrading TensorFlow to the latest version will eliminates this error.

from thumt.

renhongkai avatar renhongkai commented on August 23, 2024

@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.

Playinf avatar Playinf commented on August 23, 2024

You may find commit 2f5c288 helpful.

from thumt.

renhongkai avatar renhongkai commented on August 23, 2024

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.

renhongkai avatar renhongkai commented on August 23, 2024

@Playinf Thank you very much. This problem has been solved.

from thumt.

rgwt123 avatar rgwt123 commented on August 23, 2024

@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.

Playinf avatar Playinf commented on August 23, 2024

@rgwt123 I have tested the patch codes under TensorFlow-1.4.0 and did not found any problems.

from thumt.

Playinf avatar Playinf commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.