Yes, that's odd. It did raise 1 for `mask` which is why I defined `mask_config`. Probably I'll use `np.ascontiguousarray` for `template` as well.