Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Python Interface for Performance #53

Open
Bonifatius94 opened this issue Feb 16, 2022 · 0 comments
Open

Optimize Python Interface for Performance #53

Bonifatius94 opened this issue Feb 16, 2022 · 0 comments

Comments

@Bonifatius94
Copy link
Owner

Bonifatius94 commented Feb 16, 2022

Issue:

  • the costs of calling the Python C-API seem to outweigh all time savings of implementing chess functionality in C
  • therefore it might not make a lot of sense to expose the C code to Python at this fine-grained level anymore

Suggested Solution:

  • re-think the API interface such that it still makes sense to expose the lib to Python
  • consider options for generating larger training batches, e.g. play whole games with a single function call, add preprocessing to retain valid training batches right away
  • even think of implementing the whole AI in C/C++ via the TensorFlow C/C++ API
@Bonifatius94 Bonifatius94 changed the title Optimize for Performance Optimize Python Interface for Performance Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant