repo_name stringclasses 6
values | pr_number int64 99 20.3k | pr_title stringlengths 8 158 | pr_description stringlengths 0 6.54k | author stringlengths 4 18 | date_created timestamp[ns, tz=UTC] | date_merged timestamp[ns, tz=UTC] | previous_commit stringlengths 40 40 | pr_commit stringlengths 40 40 | query stringlengths 37 6.57k | filepath stringlengths 8 153 | before_content stringlengths 0 876M | after_content stringlengths 0 876M | label int64 -1 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/big_bird/modeling_big_bird.py | # coding=utf-8
# Copyright 2021 Google Research and The HuggingFace Inc. team. 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/LICE... | # coding=utf-8
# Copyright 2021 Google Research and The HuggingFace Inc. team. 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/LICE... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py | # coding=utf-8
# Copyright 2021 Google Research The HuggingFace Inc. team. 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-... | # coding=utf-8
# Copyright 2021 Google Research The HuggingFace Inc. team. 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-... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/conditional_detr/image_processing_conditional_detr.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/conditional_detr/modeling_conditional_detr.py | # coding=utf-8
# Copyright 2022 Microsoft Research Asia and The HuggingFace Inc. team. 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/licen... | # coding=utf-8
# Copyright 2022 Microsoft Research Asia and The HuggingFace Inc. team. 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/licen... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/deformable_detr/image_processing_deformable_detr.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/deformable_detr/modeling_deformable_detr.py | # coding=utf-8
# Copyright 2022 SenseTime and The HuggingFace Inc. team. 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.... | # coding=utf-8
# Copyright 2022 SenseTime and The HuggingFace Inc. team. 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.... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/deta/image_processing_deta.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/deta/modeling_deta.py | # coding=utf-8
# Copyright 2022 SenseTime and The HuggingFace Inc. team. 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.... | # coding=utf-8
# Copyright 2022 SenseTime and The HuggingFace Inc. team. 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.... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/mask2former/image_processing_mask2former.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/maskformer/image_processing_maskformer.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/oneformer/image_processing_oneformer.py | # coding=utf-8
# Copyright 2022 SHI Labs and The HuggingFace Inc. team. 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... | # coding=utf-8
# Copyright 2022 SHI Labs and The HuggingFace Inc. team. 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... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/reformer/modeling_reformer.py | # coding=utf-8
# Copyright 2020 The Trax Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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... | # coding=utf-8
# Copyright 2020 The Trax Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/tapas/modeling_tapas.py | # coding=utf-8
# Copyright 2020 Google Research and The HuggingFace Inc. team.
#
# 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 re... | # coding=utf-8
# Copyright 2020 Google Research and The HuggingFace Inc. team.
#
# 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 re... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/generation/test_beam_search.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/wav2vec2/test_modeling_wav2vec2.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | 1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/lxmert/modeling_tf_lxmert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors, The HuggingFace Inc. team, and the
# Lxmert Authors.
# Copyright (c) 2018, 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.... | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors, The HuggingFace Inc. team, and the
# Lxmert Authors.
# Copyright (c) 2018, 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.... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/splinter/modeling_splinter.py | # coding=utf-8
# Copyright 2021 Tel AViv University, AllenAI and The HuggingFace Inc. team. 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/... | # coding=utf-8
# Copyright 2021 Tel AViv University, AllenAI and The HuggingFace Inc. team. 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/... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/utils/dummy_vision_objects.py | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class ImageProcessingMixin(metaclass=DummyObject):
_backends = ["vision"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["vision"])
class ImageFeatureExtract... | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class ImageProcessingMixin(metaclass=DummyObject):
_backends = ["vision"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["vision"])
class ImageFeatureExtract... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/wavlm/__init__.py | -1 | ||
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/vision_text_dual_encoder/test_modeling_vision_text_dual_encoder.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/blenderbot/test_tokenization_blenderbot.py | #!/usr/bin/env python3
# coding=utf-8
# Copyright 2020 The HuggingFace Team. 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/LICENS... | #!/usr/bin/env python3
# coding=utf-8
# Copyright 2020 The HuggingFace Team. 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/LICENS... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/retribert/configuration_retribert.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc.
#
# 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.or... | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team, The Google AI Language Team and Facebook, Inc.
#
# 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.or... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/modelcard.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/legacy/question-answering/run_squad.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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 cop... | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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 cop... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/chinese_clip/modeling_chinese_clip.py | # coding=utf-8
# Copyright 2022 The OFA-Sys Team Authors and The HuggingFace Team. 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/... | # coding=utf-8
# Copyright 2022 The OFA-Sys Team Authors and The HuggingFace Team. 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/... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/research_projects/seq2seq-distillation/_test_seq2seq_examples.py | import argparse
import logging
import os
import sys
import tempfile
from pathlib import Path
import lightning_base
import pytest
import pytorch_lightning as pl
import torch
from convert_pl_checkpoint_to_hf import convert_pl_to_hf
from distillation import distill_main
from finetune import SummarizationModule, main
from... | import argparse
import logging
import os
import sys
import tempfile
from pathlib import Path
import lightning_base
import pytest
import pytorch_lightning as pl
import torch
from convert_pl_checkpoint_to_hf import convert_pl_to_hf
from distillation import distill_main
from finetune import SummarizationModule, main
from... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/commands/lfs.py | """
Implementation of a custom transfer agent for the transfer type "multipart" for git-lfs.
Inspired by: github.com/cbartz/git-lfs-swift-transfer-agent/blob/master/git_lfs_swift_transfer.py
Spec is: github.com/git-lfs/git-lfs/blob/master/docs/custom-transfers.md
To launch debugger while developing:
``` [lfs "cust... | """
Implementation of a custom transfer agent for the transfer type "multipart" for git-lfs.
Inspired by: github.com/cbartz/git-lfs-swift-transfer-agent/blob/master/git_lfs_swift_transfer.py
Spec is: github.com/git-lfs/git-lfs/blob/master/docs/custom-transfers.md
To launch debugger while developing:
``` [lfs "cust... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/openai/test_modeling_openai.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/utils/dummy_keras_nlp_objects.py | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class TFGPT2Tokenizer(metaclass=DummyObject):
_backends = ["keras_nlp"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["keras_nlp"])
| # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class TFGPT2Tokenizer(metaclass=DummyObject):
_backends = ["keras_nlp"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["keras_nlp"])
| -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/deberta_v2/tokenization_deberta_v2_fast.py | # coding=utf-8
# Copyright 2020 Microsoft and the HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2020 Microsoft and the HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/vit_hybrid/test_modeling_vit_hybrid.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/mbart/configuration_mbart.py | # coding=utf-8
# Copyright 2021, The Facebook AI Research Team and The HuggingFace Inc. team. 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.or... | # coding=utf-8
# Copyright 2021, The Facebook AI Research Team and The HuggingFace Inc. team. 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.or... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/biogpt/test_tokenization_biogpt.py | # coding=utf-8
# Copyright 2022 The HuggingFace Team. 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 requir... | # coding=utf-8
# Copyright 2022 The HuggingFace Team. 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 requir... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/bartpho/tokenization_bartpho.py | # coding=utf-8
# Copyright 2021 VinAI Research and the HuggingFace Inc. team.
#
# 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 req... | # coding=utf-8
# Copyright 2021 VinAI Research and the HuggingFace Inc. team.
#
# 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 req... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/research_projects/longform-qa/eli5_app.py | import datasets
import faiss
import numpy as np
import streamlit as st
import torch
from elasticsearch import Elasticsearch
from eli5_utils import (
embed_questions_for_retrieval,
make_qa_s2s_model,
qa_s2s_generate,
query_es_index,
query_qa_dense_index,
)
import transformers
from transformers impor... | import datasets
import faiss
import numpy as np
import streamlit as st
import torch
from elasticsearch import Elasticsearch
from eli5_utils import (
embed_questions_for_retrieval,
make_qa_s2s_model,
qa_s2s_generate,
query_es_index,
query_qa_dense_index,
)
import transformers
from transformers impor... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/layoutxlm/__init__.py | # Copyright 2021 The HuggingFace Team. 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 applicabl... | # Copyright 2021 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/convert_tf_hub_seq_to_seq_bert_to_pytorch.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/swin2sr/__init__.py | -1 | ||
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/utils/dummy_detectron2_objects.py | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import requires_backends
LAYOUTLM_V2_PRETRAINED_MODEL_ARCHIVE_LIST = None
class LayoutLMv2Model:
def __init__(self, *args, **kwargs):
requires_backends(self, ["detectron2"])
@classmethod
def from_pretrained... | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import requires_backends
LAYOUTLM_V2_PRETRAINED_MODEL_ARCHIVE_LIST = None
class LayoutLMv2Model:
def __init__(self, *args, **kwargs):
requires_backends(self, ["detectron2"])
@classmethod
def from_pretrained... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/sew_d/__init__.py | # Copyright 2021 The HuggingFace Team. 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 applicabl... | # Copyright 2021 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/blenderbot_small/test_modeling_flax_blenderbot_small.py | # Copyright 2021 The HuggingFace Team. 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 applicabl... | # Copyright 2021 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/megatron_bert/convert_megatron_bert_checkpoint.py | ####################################################################################################
# Copyright (c) 2021-, 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... | ####################################################################################################
# Copyright (c) 2021-, 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/generation/test_utils.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/mobilevit/test_image_processing_mobilevit.py | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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 ag... | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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 ag... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/bert/test_modeling_flax_bert.py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | # Copyright 2020 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/test_modeling_flax_common.py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | # Copyright 2020 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/convnext/feature_extraction_convnext.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/qdqbert/__init__.py | # Copyright 2021 NVIDIA Corporation and The HuggingFace Team. 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
#
# Unles... | # Copyright 2021 NVIDIA Corporation and The HuggingFace Team. 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
#
# Unles... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/luke/__init__.py | # Copyright 2021 The HuggingFace Team. 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 applicabl... | # Copyright 2021 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/yolos/configuration_yolos.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/gpt_neox_japanese/__init__.py | -1 | ||
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/chinese_clip/image_processing_chinese_clip.py | # coding=utf-8
# Copyright 2022 The OFA-Sys Team Authors and The HuggingFace Team. 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/... | # coding=utf-8
# Copyright 2022 The OFA-Sys Team Authors and The HuggingFace Team. 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/... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/research_projects/rag/test_distributed_retriever.py | import json
import os
import shutil
import sys
import tempfile
import unittest
from unittest import TestCase
from unittest.mock import patch
import faiss
import numpy as np
from datasets import Dataset
from transformers import BartConfig, BartTokenizer, DPRConfig, DPRQuestionEncoderTokenizer, RagConfig
from transform... | import json
import os
import shutil
import sys
import tempfile
import unittest
from unittest import TestCase
from unittest.mock import patch
import faiss
import numpy as np
from datasets import Dataset
from transformers import BartConfig, BartTokenizer, DPRConfig, DPRQuestionEncoderTokenizer, RagConfig
from transform... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/gpt2/tokenization_gpt2_tf.py | import os
from typing import Dict, List, Union
import tensorflow as tf
from keras_nlp.tokenizers import BytePairTokenizer
from tensorflow_text import pad_model_inputs
from .tokenization_gpt2 import GPT2Tokenizer
class TFGPT2Tokenizer(tf.keras.layers.Layer):
"""
This is an in-graph tokenizer for GPT2. It sho... | import os
from typing import Dict, List, Union
import tensorflow as tf
from keras_nlp.tokenizers import BytePairTokenizer
from tensorflow_text import pad_model_inputs
from .tokenization_gpt2 import GPT2Tokenizer
class TFGPT2Tokenizer(tf.keras.layers.Layer):
"""
This is an in-graph tokenizer for GPT2. It sho... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/efficientnet/test_modeling_efficientnet.py | # coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/donut/configuration_donut_swin.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./conftest.py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | # Copyright 2020 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/gpt2/modeling_tf_gpt2.py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, 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... | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/albert/__init__.py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | # Copyright 2020 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/research_projects/rag/lightning_base.py | import argparse
import logging
import os
from pathlib import Path
from typing import Any, Dict
import pytorch_lightning as pl
from pytorch_lightning.utilities import rank_zero_info
from transformers import (
AdamW,
AutoConfig,
AutoModel,
AutoModelForPreTraining,
AutoModelForQuestionAnswering,
... | import argparse
import logging
import os
from pathlib import Path
from typing import Any, Dict
import pytorch_lightning as pl
from pytorch_lightning.utilities import rank_zero_info
from transformers import (
AdamW,
AutoConfig,
AutoModel,
AutoModelForPreTraining,
AutoModelForQuestionAnswering,
... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/trocr/configuration_trocr.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/research_projects/jax-projects/big_bird/train.py | import os
from dataclasses import replace
import jax
import wandb
from bigbird_flax import Args, DataCollator, FlaxBigBirdForNaturalQuestions, Trainer, build_tx, train_step, val_step
from datasets import load_dataset
from flax import jax_utils
from transformers import BigBirdTokenizerFast
if __name__ == "__main__":... | import os
from dataclasses import replace
import jax
import wandb
from bigbird_flax import Args, DataCollator, FlaxBigBirdForNaturalQuestions, Trainer, build_tx, train_step, val_step
from datasets import load_dataset
from flax import jax_utils
from transformers import BigBirdTokenizerFast
if __name__ == "__main__":... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/swin/test_modeling_tf_swin.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/roberta_prelayernorm/modeling_flax_roberta_prelayernorm.py | # coding=utf-8
# Copyright 2022 The Google Flax Team Authors and The HuggingFace Inc. team.
#
# 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
... | # coding=utf-8
# Copyright 2022 The Google Flax Team Authors and The HuggingFace Inc. team.
#
# 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
... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/camembert/test_modeling_tf_camembert.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/utils/doc.py | # Copyright 2022 The HuggingFace Team. 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 applicabl... | # Copyright 2022 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/segformer/test_modeling_segformer.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/dpt/test_image_processing_dpt.py | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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 ag... | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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 ag... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/whisper/test_modeling_whisper.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/esm/test_modeling_esmfold.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/rembert/__init__.py | -1 | ||
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/longformer/test_tokenization_longformer.py | # coding=utf-8
# Copyright 2022 Tsimur Hadeliya. 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... | # coding=utf-8
# Copyright 2022 Tsimur Hadeliya. 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/mpnet/__init__.py | -1 | ||
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/mbart50/__init__.py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | # Copyright 2020 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/perceiver/test_tokenization_perceiver.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/efficientnet/image_processing_efficientnet.py | # coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/vit_mae/test_modeling_vit_mae.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/layoutxlm/tokenization_layoutxlm_fast.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/fsmt/test_modeling_fsmt.py | # coding=utf-8
# Copyright 2020 Huggingface
#
# 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 ... | # coding=utf-8
# Copyright 2020 Huggingface
#
# 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 ... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/videomae/convert_videomae_to_pytorch.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/time_series_transformer/__init__.py | -1 | ||
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/big_bird/tokenization_big_bird.py | # coding=utf-8
# Copyright 2021 Google Research and The HuggingFace Inc. team. 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/LICE... | # coding=utf-8
# Copyright 2021 Google Research and The HuggingFace Inc. team. 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/LICE... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/pytorch/semantic-segmentation/run_semantic_segmentation.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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/LI... | #!/usr/bin/env python
# coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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/LI... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/speech_encoder_decoder/convert_mbart_wav2vec2_seq2seq_original_to_pytorch.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/electra/configuration_electra.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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 cop... | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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 cop... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/led/tokenization_led.py | # coding=utf-8
# Copyright 2021 Iz Beltagy, Matthew E. Peters, Arman Cohan and The HuggingFace Inc. team. 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://w... | # coding=utf-8
# Copyright 2021 Iz Beltagy, Matthew E. Peters, Arman Cohan and The HuggingFace Inc. team. 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://w... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/led/test_tokenization_led.py | # Copyright 2020 The HuggingFace Team. 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 applicabl... | # Copyright 2020 The HuggingFace Team. 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 applicabl... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/vit/feature_extraction_vit.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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 r... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/opt/convert_opt_original_pytorch_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./examples/research_projects/movement-pruning/masked_run_squad.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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 cop... | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, 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 cop... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/utils/dummy_flax_objects.py | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class FlaxForcedBOSTokenLogitsProcessor(metaclass=DummyObject):
_backends = ["flax"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["flax"])
class FlaxForced... | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
class FlaxForcedBOSTokenLogitsProcessor(metaclass=DummyObject):
_backends = ["flax"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["flax"])
class FlaxForced... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/xlm_prophetnet/test_tokenization_xlm_prophetnet.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, The Microsoft Research team.
#
# 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
#
# ... | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, The Microsoft Research team.
#
# 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
#
# ... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/transfo_xl/test_tokenization_transfo_xl.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/wavlm/modeling_wavlm.py | # coding=utf-8
# Copyright 2021 The Fairseq Authors, Microsoft Research, and The HuggingFace Inc. team. 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... | # coding=utf-8
# Copyright 2021 The Fairseq Authors, Microsoft Research, and The HuggingFace Inc. team. 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./tests/models/plbart/__init__.py | -1 | ||
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/esm/openfold_utils/tensor_utils.py | # Copyright 2021 AlQuraishi Laboratory
# Copyright 2021 DeepMind Technologies Limited
#
# 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
#
# U... | # Copyright 2021 AlQuraishi Laboratory
# Copyright 2021 DeepMind Technologies Limited
#
# 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
#
# U... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/vit_hybrid/convert_vit_hybrid_timm_to_pytorch.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/utils/dummy_timm_and_vision_objects.py | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST = None
class ConditionalDetrForObjectDetection(metaclass=DummyObject):
_backends = ["timm", "vision"]
def __init__(self, *args, **kwa... | # This file is autogenerated by the command `make fix-copies`, do not edit.
from ..utils import DummyObject, requires_backends
CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST = None
class ConditionalDetrForObjectDetection(metaclass=DummyObject):
_backends = ["timm", "vision"]
def __init__(self, *args, **kwa... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/squeezebert/configuration_squeezebert.py | # coding=utf-8
# Copyright 2020 The SqueezeBert authors and The HuggingFace Inc. team.
#
# 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
#
# U... | # coding=utf-8
# Copyright 2020 The SqueezeBert authors and The HuggingFace Inc. team.
#
# 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
#
# U... | -1 |
huggingface/transformers | 20,211 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch" | # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ArthurZucker | 2022-11-14T15:30:34Z | 2023-03-01T09:49:22Z | b29e2dcaff114762e65eaea739ba1076fc5d1c84 | 44e3e3fb4930298f092f336c2b7add3ebf051928 | prepare for "__floordiv__ is deprecated and its behavior will change in a future version of pytorch". # What does this PR do?
Should adress the `__floordiv__` warnings mentionned in #19934. Divinding torch tensor using `//` is no longer supported and has to be done via `torch.div`.
| ./src/transformers/models/whisper/convert_openai_to_hf.py | # Copyright 2022 The HuggingFace Inc. team and the OpenAI team. 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
#
# Unl... | # Copyright 2022 The HuggingFace Inc. team and the OpenAI team. 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
#
# Unl... | -1 |