• Jeremy Reizenstein's avatar
    Fix camera clone() with torch.save · efea540b
    Jeremy Reizenstein authored
    Summary:
    User reported that cloned cameras fail to save. The error with latest PyTorch is
    
    ```
    pickle.PicklingError: Can't pickle ~T_destination: attribute lookup T_destination on torch.nn.modules.module failed
    ```
    
    This fixes it.
    
    Reviewed By: btgraham
    
    Differential Revision: D39692258
    
    fbshipit-source-id: 75bbf3b8dfa0023dc28bf7d4cc253ca96e46a64d
    efea540b
test_cameras.py 66.4 KB