Giter VIP home page Giter VIP logo

Comments (3)

albertz avatar albertz commented on July 17, 2024

I don't exactly understand what you mean by "task running component".
Have you looked at the documentation (here)?
Have you looked into the code itself? There are lots of comments.
Please be more specific what you think should be documented better. Which part in the code, in what file, in what function is unclear?

from returnn.

rogerzico avatar rogerzico commented on July 17, 2024

That's fine; I can get by probing the code:


EngineTask.py:

class TaskThread:

      def device_run(self):
        batch_idx = self.run_start_batch_idx = self.devices_batches_idx
        assert len(self.alloc_devices) == len(self.allocated_devices_batches)
        self.running_devices_batches = self.allocated_devices_batches
        for device, batches in zip(self.alloc_devices, self.running_devices_batches):
       ........
          print("on device", device.name, file=log.v5)
          **device.run(self.parent.task)**

I guess every network layer's computation graph node is tied to "task" !

from returnn.

albertz avatar albertz commented on July 17, 2024

See Device.py. It creates two network computation graphs trainnet and testnet, one for training (e.g. Dropout etc enabled) and one for testing (Dropout disabled). A Device instance is per process/GPU/device.

Note that this is for Theano, which is deprecated. The TensorFlow backend has a separate implementation, and has much more documentation in the code.

I'm closing this issue now as it is not really a bug.

from returnn.

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.