I found the problem. In some other code, someone was passing a real-valued vector for the argument of bias into Conv2D. In conv.py on line 34, there is a line: if bias, that was giving me error saying that passing a non-bool value is ambiguous. To correct that, I (for a moment) had changed it to if bias not None (and then forgot about it). I corrected it now.