[BE] Tweak Meta copyright headers (#90805)

s/Facebook, Inc./Meta Platforms, Inc/
s/Confidential and proprietary./This source code is licensed under the BSD-style license/

Per https://www.internalfb.com/intern/wiki/Open_Source/Licenses/Straight_BSD/

Also, add linter that prevents adding those in the future

Fixes https://github.com/pytorch/pytorch/issues/90187
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90805
Approved by: https://github.com/zpao
This commit is contained in:
Nikita Shulga
2022-12-14 20:30:31 +00:00
committed by PyTorch MergeBot
parent f3393b7ea7
commit fb18c29486
20 changed files with 95 additions and 20 deletions

View File

@ -818,3 +818,21 @@ init_command = [
'usort==1.0.2',
]
is_formatter = true
[[linter]]
code = 'COPYRIGHT'
include_patterns = ['**']
exclude_patterns = ['.lintrunner.toml']
command = [
'python3',
'tools/linter/adapters/grep_linter.py',
'--pattern=Confidential and proprietary',
'--linter-name=COPYRIGHT',
'--error-name=Confidential Code',
"""--error-description=\
Proprietary and confidential source code\
should not be contributed to PyTorch codebase\
""",
'--',
'@{{PATHSFILE}}'
]

View File

@ -1,4 +1,7 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <gtest/gtest.h>

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#import <Foundation/Foundation.h>
#include <unordered_map>

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#import "MetalOpTestRunner.h"

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include "test_utils.h"

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and its affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <map>

View File

@ -1,5 +1,5 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This is a very basic knob implementation that purely uses command line flags.
// This can be replaced with a more sophisticated implementation for use in
// other production environments.

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <torch/csrc/distributed/c10d/ParamCommsUtils.hpp>

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once

View File

@ -1,4 +1,7 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once

View File

@ -1,4 +1,8 @@
// (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <pybind11/pybind11.h>
#include <torch/csrc/jit/backends/backend.h>
#include <torch/csrc/jit/backends/backend_preprocess.h>

View File

@ -1,4 +1,7 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <caffe2/torch/csrc/jit/backends/xnnpack/compiler/xnn_compiler.h>
#include <torch/csrc/jit/backends/xnnpack/serialization/schema_generated.h>

View File

@ -1,4 +1,7 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <caffe2/torch/csrc/jit/backends/xnnpack/executor/xnn_executor.h>
#include <xnnpack.h>

View File

@ -1,4 +1,8 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once
#include <xnnpack.h>
#include <memory>

View File

@ -1,4 +1,7 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <caffe2/torch/csrc/jit/backends/xnnpack/serialization/serializer.h>
#include <torch/csrc/jit/backends/xnnpack/serialization/schema_generated.h>

View File

@ -1,4 +1,7 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <torch/csrc/jit/backends/xnnpack/serialization/schema_generated.h>
#include <cstddef>

View File

@ -1,4 +1,7 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <caffe2/torch/csrc/jit/backends/xnnpack/xnnpack_graph_builder.h>
#include <torch/csrc/jit/runtime/graph_iterator.h>

View File

@ -1,4 +1,8 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <ATen/Functions.h>
#include <ATen/Utils.h>
#include <torch/torch.h>