HazeDT / WaveletKernelNet

This is the code for WaveletKernelNet.
99 stars 28 forks source link

use assert instead of ‘if - raise Err’ #6

Closed Kanbe-Kotori closed 7 months ago

Kanbe-Kotori commented 1 year ago

For example,

if in_channels != 1:
      msg = "MexhConv only support one input channel (here, in_channels = {%i})" % (in_channels)
      raise ValueError(msg)

can be assert in_channels == 1