def _check_branches(self, num_branches, blocks, num_blocks, num_inchannels, num_channels):
    if (num_branches != len(num_blocks)):
        error_msg = 'NUM_BRANCHES({}) <> NUM_BLOCKS({})'.format(num_branches, len(num_blocks))
        raise ValueError(error_msg)
    if (num_branches != len(num_channels)):
        error_msg = 'NUM_BRANCHES({}) <> NUM_CHANNELS({})'.format(num_branches, len(num_channels))
        raise ValueError(error_msg)
    if (num_branches != len(num_inchannels)):
        error_msg = 'NUM_BRANCHES({}) <> NUM_INCHANNELS({})'.format(num_branches, len(num_inchannels))
        raise ValueError(error_msg)
def _check_branches(self, num_branches, blocks, num_blocks, num_inchannels, num_channels):
    if (num_branches != len(num_blocks)):
        error_msg = 'NUM_BRANCHES({}) <> NUM_BLOCKS({})'.format(num_branches, len(num_blocks))
        raise ValueError(error_msg)
    if (num_branches != len(num_channels)):
        error_msg = 'NUM_BRANCHES({}) <> NUM_CHANNELS({})'.format(num_branches, len(num_channels))
        raise ValueError(error_msg)
    if (num_branches != len(num_inchannels)):
        error_msg = 'NUM_BRANCHES({}) <> NUM_INCHANNELS({})'.format(num_branches, len(num_inchannels))
        raise ValueError(error_msg)