Category "self"

Why does passing and changing a class self-variable with an external function work for manipulating iterables but not variables?

I ran into a very hard to track down bug in my program where a class self-iterable was manipulated by an external function and discovered that some self-variabl

can anyone explain what "out = self(images)" do in below code

I am not able to understand, if prediction is calculated in forward method, then why there is need "out = self(images)" and what it will do. I am bit confuse ab