Giter VIP home page Giter VIP logo

Comments (2)

heiner avatar heiner commented on August 15, 2024

Hey mschen97,

Thanks for your interest in TorchBeast, as well as for your interest in SC2 with which I also have some history.

Our queues can only handle tensor data. That means the arguments are either tensors, or lists or dicts with string keys. If they are lists or dicts, the contents (values) need adhere to the same constraint. Nested lists/dicts are possible, but in the end all the "leaf" entries need to be tensors/np.arrays. The number of objects doesn't matter though. However, care needs to be taken that each environment step returns the same number of tensors and that these tensors are compatible (batchable).

There's no tensor type restriction as far as I remember.

Perhaps if you could share some short example code I could help you further?

from torchbeast.

mschen97 avatar mschen97 commented on August 15, 2024

Thanks for your replay, I have solved this problem by changing my fifth output to tensor and then form a tuple with the first output to output at the first position.Thanks!

from torchbeast.

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.