Skip to content

Commit 5213aee

Browse files
mergennachinfacebook-github-bot
authored andcommitted
Add copyright headers, Part 1/2
Summary: Added license in this diff (D47737882) Now adding header according to https://www.internalfb.com/intern/wiki/Open_Source/Licenses/Straight_BSD/ Following these instructions: https://www.internalfb.com/intern/wiki/Linting/License_Lint/ Reviewed By: cccclai Differential Revision: D47783667 fbshipit-source-id: 067df6f82f868ba109ef45db3b6092f6d1944330
1 parent f4507e9 commit 5213aee

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

backends/xnnpack/passes/conv1d_unsqueeze_pass.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
import torch
28
from executorch.exir.dialects._ops import ops as exir_ops
39
from executorch.exir.pass_base import ExportPass, PassResult
@@ -69,7 +75,7 @@ def call(self, graph_module: torch.fx.GraphModule):
6975
node.args[8],
7076
)
7177

72-
# (c) Add unsqueeze to input (3d -> 4d) and squeeze to output (4d -> 3d)
78+
# c. Add unsqueeze to input (3d -> 4d) and squeeze to output (4d -> 3d)
7379
# unsqueeze -> conv2d -> squeeze
7480
with graph.inserting_before(node):
7581
input_node = node.args[0]

exir/tests/models.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# pyre-strict
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
26

3-
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
7+
# pyre-strict
48

59
import itertools
610
from typing import List, Optional, Tuple, Union

exir/tests/test_quant_lowering_custom_backend_pass.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# pyre-strict
2-
3-
#!/usr/bin/env fbpython
4-
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the BSD-style license found in the
5+
# LICENSE file in the root directory of this source tree.
56

7+
# pyre-strict
68

79
import copy
810
import logging

0 commit comments

Comments
 (0)