Git Product home page Git Product logo

Comments (6)

lanctot avatar lanctot commented on June 19, 2024

Hi @robinpdev ,

Apologies for the lateness on this.

This seems like an error when parsing the json, maybe it's missing a specific entry or has a syntax error.

Have you tried reading that json file separately using utils/json.{h,cc} ?

Did you manually create that .json file or was it printed out from AlphaZero training? Have you modified it?

from open_spiel.

lanctot avatar lanctot commented on June 19, 2024

That error is coming from here:

std::min(30, static_cast<int>(str.size()))));

But that's an general parse error function that is called from multiple places in the file. It would be good to have the full stack trace or at least the token that's causing the issue.

Either way, would be good to reproduce in a simpler setting. Can you reproduce the problem in a much simpler main program that only tries to read that .json file to see if it's the reader itself stumbling?

(To avoid unnecessary dependencies, we built our own simple JSON parser but we may have not covered a case that is required by your specific .json file. In that case it'd be a quick fix once we isolate the problem.)

from open_spiel.

robinpdev avatar robinpdev commented on June 19, 2024

The JSON file was generated by the alphazero training implementation and was not edited.

I however got it to work for my current configuration so this is not an immediate problem anymore. I will look into it more if i encounter this problem again. Thanks for the response.

from open_spiel.

CasparQuast avatar CasparQuast commented on June 19, 2024

Hey robin. Did you manage to get it combiled for gpu? Im really struggling to build the project for gpu

from open_spiel.

robinpdev avatar robinpdev commented on June 19, 2024

this seems to be fixed.

from open_spiel.

christianjans avatar christianjans commented on June 19, 2024

Hi, sorry for not responding! I have been away from GitHub for a while and didn't realize there are more people using Libtorch AZ. That's great to hear!

If you have the chance, would you be able to post your solution to this problem? Or maybe even the configuration that caused errors and the configuration you used that resolved the problem?

from open_spiel.

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.