parent
30aad88449
commit
96216052d5
@ -1,5 +1,5 @@
|
||||
op_library(tensorrt_engine_op DEPS tensorrt_engine tensorrt_converter)
|
||||
file(APPEND ${pybind_file} "USE_CUDA_ONLY_OP(tensorrt_engine);\n")
|
||||
file(APPEND ${pybind_file} "USE_NO_KERNEL_OP(tensorrt_engine);\n")
|
||||
nv_test(test_tensorrt_engine_op SRCS tensorrt_engine_op_test.cc
|
||||
DEPS tensorrt_engine_op
|
||||
analysis)
|
||||
|
||||
@ -1,24 +0,0 @@
|
||||
/* Copyright (c) 2016 PaddlePaddle Authors. 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. */
|
||||
|
||||
#include "paddle/fluid/operators/tensorrt/tensorrt_engine_op.h"
|
||||
|
||||
namespace ops = paddle::operators;
|
||||
|
||||
REGISTER_OP_CUDA_KERNEL(
|
||||
tensorrt_engine,
|
||||
ops::TensorRTEngineKernel<paddle::platform::CUDADeviceContext, float>,
|
||||
ops::TensorRTEngineKernel<paddle::platform::CUDADeviceContext, double>,
|
||||
ops::TensorRTEngineKernel<paddle::platform::CUDADeviceContext, int>,
|
||||
ops::TensorRTEngineKernel<paddle::platform::CUDADeviceContext, int64_t>);
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue