Giter Club home page Giter Club logo

Comments (3)

perhapszzy avatar perhapszzy commented on July 17, 2024

你可以自己对数据进行切分,但是简单来说你可以只是在feed data之间把全部data shuffle一下就好。
同步是说模型更新的时候同步吗? tensorflow支持同步更新和异步更新,如果是说同步更新的话需要用到特殊的optimizer

from tensorflow-demo.

countif avatar countif commented on July 17, 2024

我看那个word2vector是每个worker都要读取同样的data(text8.zip)。 最后算的时候是只需要用一份data么?
同步(这里可能描述的不太准确)我是指更新parameter server(ps)上的参数(weight,机器学习中的model,)(在上wordtovector中是指 nce_weights, nce_biases这些参数)。
在更新参数的时候是不是tensorflow自己帮你更新的(我知道单机的情况下是自动更新的),比如我算一个梯度,我可能要把多个worker上的在当前轮迭代的梯度加起来,然后除以一个值用于更新parameter上的参数。
不过我跑完那个word2vector发现好像在异步模型下不用切分数据也可以。

from tensorflow-demo.

perhapszzy avatar perhapszzy commented on July 17, 2024

同步更新的话只能用SyncReplicasOptimizer,他会收集不同worker计算出来的梯度来更新参数。

from tensorflow-demo.

Related Issues (5)

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.