Conv2d constructor
Conv2d(})
Implementation
Conv2d(
this.inChannels,
this.outChannels,
this.kernelSize, {
this.stride = 1,
this.padding = 0,
bool useBias = true,
}) {
weight = Tensor.zeros([outChannels, inChannels, kernelSize, kernelSize]);
if (useBias) {
bias = Tensor.zeros([outChannels]);
}
}