mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[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:
committed by
PyTorch MergeBot
parent
f3393b7ea7
commit
fb18c29486
@ -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}}'
|
||||
]
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user