mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-22 07:10:34 +08:00
Address black + isort fbsource linter warnings
Summary: Address black + isort fbsource linter warnings from D20558374 (previous diff) Reviewed By: nikhilaravi Differential Revision: D20558373 fbshipit-source-id: d3607de4a01fb24c0d5269634563a7914bddf1c8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eb512ffde3
commit
d57daa6f85
@@ -1,13 +1,12 @@
|
||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||
|
||||
|
||||
import numpy as np
|
||||
import unittest
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
|
||||
from pytorch3d.renderer.utils import TensorProperties
|
||||
|
||||
from common_testing import TestCaseMixin
|
||||
from pytorch3d.renderer.utils import TensorProperties
|
||||
|
||||
|
||||
# Example class for testing
|
||||
@@ -81,9 +80,5 @@ class TestTensorProperties(TestCaseMixin, unittest.TestCase):
|
||||
if inds.sum() > 0:
|
||||
# Check the gathered points in the output have the same value from
|
||||
# the input.
|
||||
self.assertClose(
|
||||
test_class_gathered.x[inds].mean(dim=0), x[i, ...]
|
||||
)
|
||||
self.assertClose(
|
||||
test_class_gathered.y[inds].mean(dim=0), y[i, ...]
|
||||
)
|
||||
self.assertClose(test_class_gathered.x[inds].mean(dim=0), x[i, ...])
|
||||
self.assertClose(test_class_gathered.y[inds].mean(dim=0), y[i, ...])
|
||||
|
||||
Reference in New Issue
Block a user