From fc8f5e08347aec7a657c0924add2b19cbce01220 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 06:55:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- auto_round/quantizer.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/auto_round/quantizer.py b/auto_round/quantizer.py index 0b391e4b..b74a3359 100644 --- a/auto_round/quantizer.py +++ b/auto_round/quantizer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# 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. + import torch def round_ste(x: torch.Tensor): """Straight-Through Estimator for rounding.