I was going through the source code of Intel's deep learning framework Caffe, when I came across |=
. I've never seen that before in any code. In fact, I found it twice in the code. Line 188:
need_backward |= blob_need_backward_[blob_id];
and line 254:
need_backward |= param_need_backward;
I realize that they both are housed in a for loop which might signify some kind of relation. I'm just assuming.