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

visualize.py fails on current arch .nnue #188

Open
vondele opened this issue May 30, 2022 · 2 comments
Open

visualize.py fails on current arch .nnue #188

vondele opened this issue May 30, 2022 · 2 comments

Comments

@vondele
Copy link
Member

vondele commented May 30, 2022

No description provided.

@vondele
Copy link
Member Author

vondele commented May 30, 2022

Traceback (most recent call last):
  File "visualize.py", line 580, in <module>
    main()
  File "visualize.py", line 545, in main
    model = load_model(args.model, feature_set)
  File "visualize.py", line 465, in load_model
    reader = NNUEReader(f, feature_set)
  File "/home/vondele/chess/vondele/nnue-pytorch/serialize.py", line 149, in __init__
    self.read_feature_transformer(self.model.input, self.model.num_psqt_buckets)
  File "/home/vondele/chess/vondele/nnue-pytorch/serialize.py", line 184, in read_feature_transformer
    weights = self.tensor(numpy.int16, [shape[0], shape[1]-num_psqt_buckets])
  File "/home/vondele/chess/vondele/nnue-pytorch/serialize.py", line 176, in tensor
    d = d.reshape(shape)
RuntimeError: shape '[23296, 1024]' is invalid for input of size 23499680

@Sopel97
Copy link
Member

Sopel97 commented May 30, 2022

Yea, this script has been left quite behind. It needs some serious reengineering due to feature set changes and much different sizes and counts of layers to visualize.

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

2 participants