Skip to content

Question about queue dimension #143

@yeomjh00

Description

@yeomjh00

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]?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions