|
self.register_buffer("queue", torch.randn(dim, K)) |
Hello. I have a simple question about queue dimension in moco/builder.py
I noticed that K is a length of queue, and dim is a feature dimension.
Isn't it faster accessing each feature with row major than accessing with column major?
Can anybody explain me why queue designed with dim [dim(feature), queue_length]?
moco/moco/builder.py
Line 50 in 5a429c0
Hello. I have a simple question about queue dimension in moco/builder.py
I noticed that
Kis a length of queue, anddimis a feature dimension.Isn't it faster accessing each feature with row major than accessing with column major?
Can anybody explain me why queue designed with dim [dim(feature), queue_length]?