Git Product home page Git Product logo

Comments (7)

killerducky avatar killerducky commented on July 19, 2024

Running an optimizer, is that like tensorrt? The leela-chess guys had some great results with that.

from minigo.

amj avatar amj commented on July 19, 2024

I hadn't heard of that -- i was pointed towards toco . I'll go look up tensorrt

from minigo.

killerducky avatar killerducky commented on July 19, 2024

leela-chess benchmarks:
glinscott/leela-chess#52 (comment)

Looks like they are working on integrating into TF:
tensorflow/tensorflow#16253

from minigo.

amj avatar amj commented on July 19, 2024

Yes, that's it almost exactly. out_graph = tf.graph_util.convert_variables_to_constants(n.sess, n.sess.graph.as_graph_def(), ["policy_output", "value_output"])

(where n is a dual_net.DualNetworkTrainer object that's initialized)

from minigo.

Error323 avatar Error323 commented on July 19, 2024

Hi,

Indeed, TensorRT seems very promising, unfortunately as of now you won't be able to export your tensorflow network to uff format for importing as the Merge operator is unsupported. This leaves three possibilities:

  • Create a network clone in TensorRT using their C++ API and use exported weights from tensorflow
  • Wait for TensorRT to support tensorflow 1.4 and beyond
  • Wait for the PR mentioned above to be merged

The PR probably makes the most sense. Nice project! (offtopic: @amj it looks like you're from the AlphaGo documentary, awesome!)

from minigo.

amj avatar amj commented on July 19, 2024

@Error323 thanks for the great summary, much appreciated! We'll check it out. I think it's a pretty open space w.r.t. what sort of optimizations are possible so we might not lock in to TensorRT immediately. (I am the guy from doc, yep -- had to study up on NNs since then ;) I'm really watching the leela chess project with great interest!

from minigo.

brilee avatar brilee commented on July 19, 2024

I think we've done this in the course of implementing C++ selfplay?

from minigo.

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.