Skip to content

torch.uint8 instead of torch.float32 after data loader #90

@greenyjwk

Description

@greenyjwk

Hello,

Thank you for your great work.

Q1
I have a quick question about the tensor type after data_loader.

I guess the main train Python script is default_trainer.py (BiomedParse/trainer/default_trainer.py)

So it printed out the tensor right after dataloader(), which is line #243.
for batch_idx, batch in enumerate(self.train_dataloaders):

And when I check the data type, it was torch.uint8, not torch.float32, which I expected.

Was it from my mistake, or is it meant to have a torch.uint8 instead of torch.float32. If it torch.uint8 on purpose, would you explain the reason why it is?

Q2
And also, I want to take a look at how the dataloader looks. Which Python scripts implement the dataloader?

Thank you.

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