ChengFei(征辉) 发表于 2019-8-15 13:12

leela-zero 源代码 的疑问

1)怎么理解 https://github.com/leela-zero/leela-zero/blob/next/src/Network.cpp#L253-L255?


// 1 format id, 1 input layer (4 x weights), 14 ending weights,
    // the rest are residuals, every residual has 8 x weight lines
    auto residual_blocks = linecount - (1 + 4 + 14);



2) 为何乘 4 ?

const auto plain_conv_wts = plain_conv_layers * 4;

https://github.com/leela-zero/leela-zero/blob/next/src/Network.cpp#L270-L271



https://i.imgur.com/7annmcM.png

leexch 发表于 2019-8-15 14:21

这个问题,似乎能回答你的人很少

我爱吴清源 发表于 2019-8-18 16:59

这个需要高手了吧
页: [1]
查看完整版本: leela-zero 源代码 的疑问