From c4fc4666fc1a4a285fede90f46cb45049c5aecca Mon Sep 17 00:00:00 2001 From: Luke Davis Date: Thu, 10 Jun 2021 10:40:19 -0700 Subject: [PATCH] Fixes bug when importing from ..common.types (#706) Summary: There are a couple times in the code where Device, make_device and get_device are imported by: `from ..common.types import Device, get_device, make_device` which will not work without this init file, at least on python 3.8. Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/706 Reviewed By: bottler Differential Revision: D29031835 Pulled By: patricklabatut fbshipit-source-id: 15743e3c8cffdfcca51b6d2f377b923da9cbe6f9 --- pytorch3d/common/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 pytorch3d/common/__init__.py diff --git a/pytorch3d/common/__init__.py b/pytorch3d/common/__init__.py new file mode 100644 index 00000000..40539064 --- /dev/null +++ b/pytorch3d/common/__init__.py @@ -0,0 +1 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.