KataGo icon indicating copy to clipboard operation
KataGo copied to clipboard

Wrong definition of self.conv_spatial parameter in katago's model_pytorch file?

Open onikatanyamaraj opened this issue 2 years ago • 2 comments

When I run the standalone synchronized self-play training, the following error is reported:

8d15a5467b246ab1a863d93fa60e579

The format of the padding parameter of conv_spatial should not be a string but rather an integer tuple. So I found this conv_spatial method definition, found out that the default parameter for padding is "same". This is more in the tradition of tensorflow and not in line with pytorch's specification. 73a2cc2e9faa058ec27def53110e425

I think this is a small loophole in the development of the algorithm, can the default values here be changed?

onikatanyamaraj avatar Sep 07 '23 05:09 onikatanyamaraj

The pytorch documentation explicitly says "same" is a valid parameter: https://pytorch.org/docs/stable/generated/torch.nn.Conv2d.html

Perhaps you are using a version of pytorch that is too old?

lightvector avatar Sep 07 '23 12:09 lightvector

Thank you so much for noticing my problem and helping! I should check my pytorch version.

onikatanyamaraj avatar Sep 08 '23 06:09 onikatanyamaraj