Thanks @slawekbiel! I have a question. It is slightly unrelated to debugging, but I got curious haha I noticed that the show_batch function is defined multiple times. How is that possible? Wouldn’t one conflict with the other? For example, you showed there was a show_batch function calling another show_batch function (which you copied from another notebook). My intuition would be that a recursive call would occur there, but actually both of them continued existing even though they had the same name. That’s counter intuitive to me that’s why I decided to ask. Not sure how I would google that hahah Thanks!
UPDATE: I just found in this reference from fastai:
TypeDispatch
— allows for the same function to work differently for different types
So, that means that by using the @typedispatch decorator, I can declare the very same function multiple times, but have it to act differently depending on it’s input type. Is that correct?