From 7dce3fb3c3516ec1480619920567b4c4a6c6ada6 Mon Sep 17 00:00:00 2001 From: phlrain Date: Mon, 14 Feb 2022 08:24:15 +0000 Subject: [PATCH] fix histogram kernel format; test=develop --- paddle/pten/kernels/histogram_kernel.h | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/paddle/pten/kernels/histogram_kernel.h b/paddle/pten/kernels/histogram_kernel.h index 08e63aa0ac6..4bc4ef6fb9e 100644 --- a/paddle/pten/kernels/histogram_kernel.h +++ b/paddle/pten/kernels/histogram_kernel.h @@ -1,4 +1,16 @@ - +// Copyright (c) 2022 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. #pragma once @@ -7,10 +19,10 @@ namespace pten { template void HistogramSelectKernel(const Context& dev_ctx, - const DenseTensor& input, - int64_t bins, - int min, - int max, - DenseTensor* out); + const DenseTensor& input, + int64_t bins, + int min, + int max, + DenseTensor* out); -} // namspace pten +} // namespace pten -- GitLab