Customized collate_fn gives False pin_memory in the official example

Running this piece of code gives me

False
False
False
False
False
False
False
False
False
False

Is that normal?

it’s normal if you are using old pytorch or does not have cuda