python_code
stringlengths
0
679k
repo_name
stringlengths
9
41
file_path
stringlengths
6
149
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
tests/python/norm.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/conv_on_coords.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/pruning.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/__init__.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/kernel_map.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/strided_conv.py
# Copyright (c) 2020-2021 NVIDIA CORPORATION. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, pub...
MinkowskiEngine-master
tests/python/summary.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/common.py
# Copyright (c) 2021 NVIDIA CORPORATION. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish,...
MinkowskiEngine-master
tests/python/stack.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
tests/python/sparse_tensor.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/chwise_conv.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
tests/python/pool.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
tests/python/broadcast.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
tests/python/spmm.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limit...
MinkowskiEngine-master
tests/python/union.py
import numpy as np import unittest import time import torch import MinkowskiEngineTest._C as _C from utils import load_file, batched_coordinates from gradcheck import gradcheck class ConvolutionTestCase(unittest.TestCase): def test(self): IC, OC = 3, 5 coordinates = torch.IntTensor([[0, 1, -1], ...
MinkowskiEngine-master
tests/cpp/convolution_cpu_test.py
import numpy as np import unittest import time import torch import MinkowskiEngineTest._C from utils import load_file, batched_coordinates class KernelRegionTestCase(unittest.TestCase): def test(self): coordinates = torch.IntTensor( [[0, 1, -1], [0, 1, 0], [0, 1, 1], [0, 2, -1], [0, 2, 0], [...
MinkowskiEngine-master
tests/cpp/kernel_region_cpu_test.py
import numpy as np import unittest import time import torch import MinkowskiEngineTest._C as _C from utils import load_file, batched_coordinates class ConvolutionTestCase(unittest.TestCase): def test_stride(self): coordinates = torch.IntTensor([[0, 1], [1, 2], [2, 3], [2, 3]]) key, manager, map_...
MinkowskiEngine-master
tests/cpp/convolution_cpu.py
import numpy as np import unittest import time import torch import MinkowskiEngineTest._C from utils import load_file, batched_coordinates class CoordinateMapTestCase(unittest.TestCase): def test_batch_insert(self): coordinates = torch.IntTensor([[0, 1], [1, 2], [2, 3], [2, 3]]) num, _ = Minkows...
MinkowskiEngine-master
tests/cpp/coordinate_map_cpu_test.py
import unittest import torch import MinkowskiEngineTest._C as _C class CoordinateMapManagerTestCase(unittest.TestCase): def test(self): coordinates = torch.IntTensor([[0, 1], [1, 2], [2, 3], [2, 3]]) key, manager, map_inverse_map = _C.coordinate_map_manager_test(coordinates, "") unique_map...
MinkowskiEngine-master
tests/cpp/coordinate_map_manager_cpu_test.py
import unittest import torch import MinkowskiEngineTest._C class CoordinateMapKeyTestCase(unittest.TestCase): def test(self): MinkowskiEngineTest._C.coordinate_map_key_test() key = MinkowskiEngineTest._C.CoordinateMapKey([3, 4, 5], "") print(key.__repr__()) self.assertEqual([3, 4, ...
MinkowskiEngine-master
tests/cpp/coordinate_map_key_test.py
MinkowskiEngine-master
tests/cpp/__init__.py
import unittest import torch import MinkowskiEngineTest._C class TypeTestCase(unittest.TestCase): def test(self): MinkowskiEngineTest._C.type_test() self.assertErtTrue(True)
MinkowskiEngine-master
tests/cpp/type_test.py
import unittest import torch import MinkowskiEngineTest._C class CoordinateTestCase(unittest.TestCase): def test_check(self): coordinates = torch.FloatTensor([2, 3]) with self.assertRaises(RuntimeError): MinkowskiEngineTest._C.coordinate_test(coordinates) coordinates = torch.I...
MinkowskiEngine-master
tests/cpp/coordinate_test.py
import sys from sys import argv, platform import torch.cuda import os import subprocess from setuptools import setup import unittest from pathlib import Path from torch.utils.cpp_extension import BuildExtension, CppExtension, CUDAExtension from torch.utils.cpp_extension import CUDA_HOME, ROCM_HOME def run_command(*a...
MinkowskiEngine-master
tests/cpp/setup.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
tests/cpp/utils.py
import numpy as np import unittest import time import torch import MinkowskiEngineTest._C from utils import load_file, batched_coordinates class KernelRegionTestCase(unittest.TestCase): def test(self): coordinates = torch.IntTensor([[0, 1, -1], [0, 2, 1]]).cuda() kernel_size = torch.IntTensor([3...
MinkowskiEngine-master
tests/cpp/kernel_region_gpu_test.py
import numpy as np import unittest import time import torch import MinkowskiEngineTest._C as _C from utils import load_file, batched_coordinates from gradcheck import gradcheck class ConvolutionTestCase(unittest.TestCase): def test(self): D, IC, OC = 2, 3, 5 coordinates = torch.IntTensor([[0, 1]...
MinkowskiEngine-master
tests/cpp/convolution_gpu_test.py
import numpy as np import unittest import time import torch import MinkowskiEngineTest._C from utils import load_file, batched_coordinates class CoordinateMapTestCase(unittest.TestCase): def test_batch_insert(self): assert torch.cuda.is_available() coordinates = torch.IntTensor([[0, 1], [1, 2], ...
MinkowskiEngine-master
tests/cpp/coordinate_map_gpu_test.py
import unittest import torch import MinkowskiEngineTest._C as _C class CoordinateMapManagerTestCase(unittest.TestCase): def test(self): coordinates = torch.IntTensor([[0, 1], [1, 2], [2, 3], [2, 3]]).to(0) key, manager, map_inverse_map = _C.coordinate_map_manager_test(coordinates, "") uniq...
MinkowskiEngine-master
tests/cpp/coordinate_map_manager_gpu_test.py
import os import sys # import pkg_resources # pkg_resources.require('MinkowskiEngine==0.4.2a1') import MinkowskiEngine as ME # -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentati...
MinkowskiEngine-master
docs/conf.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/indoor.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/minkunet.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/convolution.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/reconstruction.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/completion.py
# Copyright (c) NVIDIA Corporation. # Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation...
MinkowskiEngine-master
examples/multigpu_lightning.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/unet.py
MinkowskiEngine-master
examples/__init__.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
examples/classification_modelnet40.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/common.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/resnet.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/example.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/stack_unet.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
examples/pointnet.py
#!/usr/bin/env python """ File Name : MinkowskiEngine-multigpu_ddp date : 16/12/2019 Author : wenbo Email : huwenbodut@gmail.com Description : _ _ ( |---/ ) ) . . ( ______________...
MinkowskiEngine-master
examples/multigpu_ddp.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/multigpu.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/sparse_tensor_basic.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limit...
MinkowskiEngine-master
examples/vae.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
examples/training.py
# Copyright (c) 2020 NVIDIA CORPORATION. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish,...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiTensorField.py
# Copyright (c) 2020 NVIDIA CORPORATION. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish,...
MinkowskiEngine-master
MinkowskiEngine/sparse_matrix_functions.py
import sys import os import platform import subprocess def parse_nvidia_smi(): sp = subprocess.Popen( ["nvidia-smi", "-q"], stdout=subprocess.PIPE, stderr=subprocess.PIPE ) out_dict = dict() for item in sp.communicate()[0].decode("utf-8").split("\n"): if item.count(":") == 1: ...
MinkowskiEngine-master
MinkowskiEngine/diagnostics.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiSparseTensor.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiNetwork.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiInterpolation.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiBroadcast.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/__init__.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiUnion.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiFunctional.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiNonlinearity.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiChannelwiseConvolution.py
# Copyright (c) 2021 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiOps.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiPooling.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiPruning.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiNormalization.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiCoordinateManager.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiConvolution.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiCommon.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiKernelGenerator.py
# Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including wit...
MinkowskiEngine-master
MinkowskiEngine/MinkowskiTensor.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/utils/coords.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/utils/quantization.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/utils/__init__.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/utils/collation.py
import torch import torch.nn as nn from torch.autograd import Variable from collections import OrderedDict import numpy as np import MinkowskiEngine as ME from MinkowskiSparseTensor import SparseTensor def summary(model, summary_input): result, params_info = minkowski_summary_string(model, summary_input) pr...
MinkowskiEngine-master
MinkowskiEngine/utils/summary.py
import math import torch def _calculate_fan_in_and_fan_out(tensor): dimensions = tensor.dim() if dimensions < 2: raise ValueError( "Fan in and fan out can not be computed for tensor with fewer than 2 dimensions" ) if dimensions == 2: # Linear fan_in = tensor.size(1) ...
MinkowskiEngine-master
MinkowskiEngine/utils/init.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/utils/gradcheck.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/modules/resnet_block.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/modules/senet_block.py
# Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, ...
MinkowskiEngine-master
MinkowskiEngine/modules/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
qa/L0_lenet/test_lenet.py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyProf-master
qa/L0_function_stack/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
qa/L0_function_stack/test_pyprof_func_stack.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
qa/L0_nvtx/test_pyprof_nvtx.py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyProf-master
qa/L0_nvtx/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
qa/L0_pyprof_data/test_pyprof_data.py
PyProf-master
qa/L0_pyprof_data/__init__.py
#!/usr/bin/python # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
PyProf-master
qa/common/check_copyright.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
qa/common/run_test.py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
PyProf-master
docs/conf.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
pyprof/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
pyprof/parse/db.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
pyprof/parse/kernel.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
pyprof/parse/nvvp.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
pyprof/parse/__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, Aditya Agrawal. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
PyProf-master
pyprof/parse/nsight.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
pyprof/parse/parse.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/li...
PyProf-master
pyprof/parse/__main__.py