No, I don’t know how custom objects are treated in the DataLoader and might interact with pinning the memory. What’s your use case that you need to pin the memory in your custom object and then again in the DataLoader? Or are you trying to use the DataLoader to call into your custom pin_memory method?