Skip to content

Commit

Permalink
Add licence info in backend_ops (open-mmlab#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire authored Nov 9, 2021
1 parent 79890f4 commit 391ddeb
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 19 deletions.
7 changes: 4 additions & 3 deletions backend_ops/onnxruntime/grid_sample/grid_sample.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// modified from
// https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/GridSampler.cpp

#include "grid_sample.h"

#include <cmath>
Expand All @@ -10,9 +14,6 @@ namespace mmdeploy {
#define CLIP_COORDINATES(in, out, clip_limit) \
out = MIN((clip_limit - 1), MAX(in, 0))

// modified from
// https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/GridSampler.cpp

GridSampleKernel::GridSampleKernel(OrtApi api, const OrtKernelInfo *info)
: api_(api), ort_(api_), info_(info) {
align_corners_ = ort_.KernelInfoGetAttribute<int64_t>(info, "align_corners");
Expand Down
3 changes: 3 additions & 0 deletions backend_ops/onnxruntime/roi_align/roi_align.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// modified from
// https://github.com/facebookresearch/maskrcnn-benchmark/blob/main/maskrcnn_benchmark/csrc/cpu/ROIAlign_cpu.cpp
#include "roi_align.h"

#include "ort_utils.h"
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/allClassNMS.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include <vector>
Expand Down
18 changes: 3 additions & 15 deletions backend_ops/tensorrt/batched_nms/cub_helper.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
/*
* Copyright (c) 2019, 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include "kernel.h"
template <typename KeyT, typename ValueT>
size_t cubSortPairsWorkspaceSize(int num_items, int num_segments) {
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/gatherNMSOutputs.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/kernel.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include <stdint.h>
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/kernel.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#ifndef TRT_KERNEL_H
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/permuteData.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/sortScoresPerClass.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/sortScoresPerImage.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion backend_ops/tensorrt/batched_nms/trt_batched_nms.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin

#include "trt_batched_nms.hpp"

#include <cstring>
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/batched_nms/trt_batched_nms.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#ifndef TRT_BATCHED_NMS_PLUGIN_CUSTOM_H
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#include "trt_batched_nms_kernel.hpp"
Expand Down
3 changes: 3 additions & 0 deletions backend_ops/tensorrt/batched_nms/trt_batched_nms_kernel.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// modify from
// https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin
#ifndef TRT_BATCHED_NMS_KERNEL_HPP
#define TRT_BATCHED_NMS_KERNEL_HPP
#include "cuda_runtime_api.h"
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/common/trt_serialize.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// Modified from:
// https://github.com/NVIDIA/TensorRT/blob/master/plugin/common/serialize.hpp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// modified from
// https://github.com/pytorch/pytorch/blob/ec683299ebabf297a3504c76248d37be830e4342/aten/src/ATen/native/cuda/GridSampler.cuh
// and
Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/instance_norm/trt_instance_norm.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// Modified from:
// https://github.com/NVIDIA/TensorRT/blob/master/plugin/instanceNormalizationPlugin/instanceNormalizationPlugin.cpp

Expand Down
1 change: 1 addition & 0 deletions backend_ops/tensorrt/instance_norm/trt_instance_norm.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
// Modified from:
// https://github.com/NVIDIA/TensorRT/blob/master/plugin/instanceNormalizationPlugin/instanceNormalizationPlugin.h

Expand Down

0 comments on commit 391ddeb

Please sign in to comment.