so-much-meta / lczero_tools

Utilities for experimenting with leela-chess-zero
GNU General Public License v3.0
42 stars 22 forks source link

Added basic setup.py to enable installing as a python package. #2

Closed edlanglois closed 6 years ago

edlanglois commented 6 years ago

Install with pip install -e . from lczero_tools directory.

edlanglois commented 6 years ago

My bad, there used to be from distributed.worker import weight in _leela_torch_net.py and I came across Dask.distributed when searching for it and thought distributed was provided by dask (I see now that it's a separate package). Either way, that line is gone so I'll remove the dependency.

so-much-meta commented 6 years ago

Gotcha. So it was my fault! The "distributed.worker" line either was automatically added by one of my IDEs, or I accidentally copied it from leela-chess (I borrowed code that sets up training pipeline so that I could use their "tfprocess" module to ensure this works with tensorflow -- this was only meant to be a temporary hack until I actually get around to reconstructing the tf net outside of tfrpocess).

so-much-meta commented 6 years ago

Thanks for the PRs!