google / tirg

deep learning, image retrieval, vision and language
Apache License 2.0
296 stars 85 forks source link

What does this mean #11

Closed MOAboAli closed 3 years ago

MOAboAli commented 3 years ago

https://github.com/google/tirg/blob/4d9fb23511e34bc180cb7551e4414eb2f938fc84/img_text_composition_models.py#L85

labels = torch.tensor(range(x.shape[0])).long()

is this mean labels is always zero ?