Skip to content

Cache Python game tensor shapes - #1595

Open
quinnarnold wants to merge 1 commit into
google-deepmind:masterfrom
quinnarnold:issue-1068-cache-python-tensor-shapes
Open

quinnarnold wants to merge 1 commit into
google-deepmind:masterfrom
quinnarnold:issue-1068-cache-python-tensor-shapes

Conversation

@quinnarnold

Copy link
Copy Markdown

Fixes #1068.

Cache observation and information-state tensor shapes after their first computation for Python-defined games. Optional caches preserve support for valid empty shapes while avoiding repeated initial-state creation and observer writes.

Validation:

  • Built the pyspiel target.
  • Passed focused runtime checks for observation, information-state, and empty tensor shapes.
  • Passed all 17 Python Tic-Tac-Toe tests.
  • Passed git diff --check.

@google-cla

google-cla Bot commented Aug 28, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@lanctot

lanctot commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Thanks @quinnarnold !

Can you sign the CLA?

@quinnarnold

Copy link
Copy Markdown
Author

Hi @lanctot
I signed it upon the PR submission. Must be a provisioning issue. Just resubmitted. Thanks!

@quinnarnold

Copy link
Copy Markdown
Author

@googlebot rescan

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

Successfully merging this pull request may close these issues.

python: state.observation_tensor() creates a new state...

2 participants