diff --git a/backends/aoti/slim/c10/core/Contiguity.h b/backends/aoti/slim/c10/core/Contiguity.h index bba29a7355c..9b6e420d598 100644 --- a/backends/aoti/slim/c10/core/Contiguity.h +++ b/backends/aoti/slim/c10/core/Contiguity.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/core/Device.h b/backends/aoti/slim/c10/core/Device.h index cc401d2b461..5634de71297 100644 --- a/backends/aoti/slim/c10/core/Device.h +++ b/backends/aoti/slim/c10/core/Device.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/core/DeviceType.h b/backends/aoti/slim/c10/core/DeviceType.h index c7eb1044a5b..749ac0a97a4 100644 --- a/backends/aoti/slim/c10/core/DeviceType.h +++ b/backends/aoti/slim/c10/core/DeviceType.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Copied from c10/core/DeviceType.h with some modifications: diff --git a/backends/aoti/slim/c10/core/Layout.h b/backends/aoti/slim/c10/core/Layout.h index b4cf2264197..89ab31d95e4 100644 --- a/backends/aoti/slim/c10/core/Layout.h +++ b/backends/aoti/slim/c10/core/Layout.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/core/MemoryFormat.h b/backends/aoti/slim/c10/core/MemoryFormat.h index 683885d3ce8..7656e63c045 100644 --- a/backends/aoti/slim/c10/core/MemoryFormat.h +++ b/backends/aoti/slim/c10/core/MemoryFormat.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/core/Scalar.h b/backends/aoti/slim/c10/core/Scalar.h index 8dee107b7c3..7c180950f46 100644 --- a/backends/aoti/slim/c10/core/Scalar.h +++ b/backends/aoti/slim/c10/core/Scalar.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/core/ScalarType.h b/backends/aoti/slim/c10/core/ScalarType.h index a0549afa4ab..c59138053d1 100644 --- a/backends/aoti/slim/c10/core/ScalarType.h +++ b/backends/aoti/slim/c10/core/ScalarType.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/core/SizesAndStrides.h b/backends/aoti/slim/c10/core/SizesAndStrides.h index 284997b8034..dd6ca5afbce 100644 --- a/backends/aoti/slim/c10/core/SizesAndStrides.h +++ b/backends/aoti/slim/c10/core/SizesAndStrides.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/core/WrapDimMinimal.h b/backends/aoti/slim/c10/core/WrapDimMinimal.h index ce52ebeaab7..702595667ca 100644 --- a/backends/aoti/slim/c10/core/WrapDimMinimal.h +++ b/backends/aoti/slim/c10/core/WrapDimMinimal.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/cuda/Exception.h b/backends/aoti/slim/c10/cuda/Exception.h index 3f5774c2f71..0e372ff0178 100644 --- a/backends/aoti/slim/c10/cuda/Exception.h +++ b/backends/aoti/slim/c10/cuda/Exception.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 #ifdef USE_CUDA diff --git a/backends/aoti/slim/c10/macros/Macros.h b/backends/aoti/slim/c10/macros/Macros.h index d05f177ccd8..e19faaa7465 100644 --- a/backends/aoti/slim/c10/macros/Macros.h +++ b/backends/aoti/slim/c10/macros/Macros.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // SlimTensor Macros Header diff --git a/backends/aoti/slim/c10/util/Array.h b/backends/aoti/slim/c10/util/Array.h index d093d26c51a..b56a6d24940 100644 --- a/backends/aoti/slim/c10/util/Array.h +++ b/backends/aoti/slim/c10/util/Array.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/BFloat16-inl.h b/backends/aoti/slim/c10/util/BFloat16-inl.h index 5c41d4aaad0..bb622e62e47 100644 --- a/backends/aoti/slim/c10/util/BFloat16-inl.h +++ b/backends/aoti/slim/c10/util/BFloat16-inl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/BFloat16-math.h b/backends/aoti/slim/c10/util/BFloat16-math.h index ad67d81fa23..d2cae099718 100644 --- a/backends/aoti/slim/c10/util/BFloat16-math.h +++ b/backends/aoti/slim/c10/util/BFloat16-math.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/BFloat16.h b/backends/aoti/slim/c10/util/BFloat16.h index d1b2a5baeb2..30bec171a4d 100644 --- a/backends/aoti/slim/c10/util/BFloat16.h +++ b/backends/aoti/slim/c10/util/BFloat16.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Defines the bloat16 type (brain floating-point). This representation uses diff --git a/backends/aoti/slim/c10/util/Float4_e2m1fn_x2.h b/backends/aoti/slim/c10/util/Float4_e2m1fn_x2.h index 182163b9ca2..3e613a5c4e8 100644 --- a/backends/aoti/slim/c10/util/Float4_e2m1fn_x2.h +++ b/backends/aoti/slim/c10/util/Float4_e2m1fn_x2.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Float8_e4m3fn-inl.h b/backends/aoti/slim/c10/util/Float8_e4m3fn-inl.h index a0cb1db2888..efc4a14070b 100644 --- a/backends/aoti/slim/c10/util/Float8_e4m3fn-inl.h +++ b/backends/aoti/slim/c10/util/Float8_e4m3fn-inl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Float8_e4m3fn.h b/backends/aoti/slim/c10/util/Float8_e4m3fn.h index 22118007289..e84e492cbef 100644 --- a/backends/aoti/slim/c10/util/Float8_e4m3fn.h +++ b/backends/aoti/slim/c10/util/Float8_e4m3fn.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 /// Defines the Float8_e4m3fn type (8-bit floating-point) including conversions diff --git a/backends/aoti/slim/c10/util/Float8_e4m3fnuz-inl.h b/backends/aoti/slim/c10/util/Float8_e4m3fnuz-inl.h index 51f7c017504..778afae69ab 100644 --- a/backends/aoti/slim/c10/util/Float8_e4m3fnuz-inl.h +++ b/backends/aoti/slim/c10/util/Float8_e4m3fnuz-inl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Float8_e4m3fnuz.h b/backends/aoti/slim/c10/util/Float8_e4m3fnuz.h index b9c8ae582f4..54ee3248bd8 100644 --- a/backends/aoti/slim/c10/util/Float8_e4m3fnuz.h +++ b/backends/aoti/slim/c10/util/Float8_e4m3fnuz.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 /// Defines the Float8_e4m3fnuz type (8-bit floating-point) including diff --git a/backends/aoti/slim/c10/util/Float8_e5m2-inl.h b/backends/aoti/slim/c10/util/Float8_e5m2-inl.h index bdc80613015..50ca5850f0f 100644 --- a/backends/aoti/slim/c10/util/Float8_e5m2-inl.h +++ b/backends/aoti/slim/c10/util/Float8_e5m2-inl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Float8_e5m2.h b/backends/aoti/slim/c10/util/Float8_e5m2.h index 6e9fa9b5aed..d2f538b302d 100644 --- a/backends/aoti/slim/c10/util/Float8_e5m2.h +++ b/backends/aoti/slim/c10/util/Float8_e5m2.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 /// Defines the Float8_e5m2 type (8-bit floating-point) including conversions diff --git a/backends/aoti/slim/c10/util/Float8_e5m2fnuz-inl.h b/backends/aoti/slim/c10/util/Float8_e5m2fnuz-inl.h index ca46726424b..1b7f27ec042 100644 --- a/backends/aoti/slim/c10/util/Float8_e5m2fnuz-inl.h +++ b/backends/aoti/slim/c10/util/Float8_e5m2fnuz-inl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Float8_e5m2fnuz.h b/backends/aoti/slim/c10/util/Float8_e5m2fnuz.h index 66c2427c8ac..0d6451754e9 100644 --- a/backends/aoti/slim/c10/util/Float8_e5m2fnuz.h +++ b/backends/aoti/slim/c10/util/Float8_e5m2fnuz.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 /// Defines the Float8_e5m2fnuz type (8-bit floating-point) including diff --git a/backends/aoti/slim/c10/util/Float8_e8m0fnu-inl.h b/backends/aoti/slim/c10/util/Float8_e8m0fnu-inl.h index 4e35e04bc22..a00c12de65f 100644 --- a/backends/aoti/slim/c10/util/Float8_e8m0fnu-inl.h +++ b/backends/aoti/slim/c10/util/Float8_e8m0fnu-inl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Float8_e8m0fnu.h b/backends/aoti/slim/c10/util/Float8_e8m0fnu.h index 0f67705c510..81109d8339b 100644 --- a/backends/aoti/slim/c10/util/Float8_e8m0fnu.h +++ b/backends/aoti/slim/c10/util/Float8_e8m0fnu.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 /// Defines the Float8_e8m0fnu type (8-bit floating-point) including diff --git a/backends/aoti/slim/c10/util/Float8_fnuz_cvt.h b/backends/aoti/slim/c10/util/Float8_fnuz_cvt.h index 49bcaad6842..fb0b6079c4c 100644 --- a/backends/aoti/slim/c10/util/Float8_fnuz_cvt.h +++ b/backends/aoti/slim/c10/util/Float8_fnuz_cvt.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Half-inl.h b/backends/aoti/slim/c10/util/Half-inl.h index 7dbddd47d61..eeeb0170389 100644 --- a/backends/aoti/slim/c10/util/Half-inl.h +++ b/backends/aoti/slim/c10/util/Half-inl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/Half.h b/backends/aoti/slim/c10/util/Half.h index 26597d23e53..c78cf99c457 100644 --- a/backends/aoti/slim/c10/util/Half.h +++ b/backends/aoti/slim/c10/util/Half.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 /// Defines the Half type (half-precision floating-point) including conversions diff --git a/backends/aoti/slim/c10/util/StringUtil.h b/backends/aoti/slim/c10/util/StringUtil.h index 8a696322716..3b32db76633 100644 --- a/backends/aoti/slim/c10/util/StringUtil.h +++ b/backends/aoti/slim/c10/util/StringUtil.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/TypeCast.h b/backends/aoti/slim/c10/util/TypeCast.h index ff85127a870..6d5324c557a 100644 --- a/backends/aoti/slim/c10/util/TypeCast.h +++ b/backends/aoti/slim/c10/util/TypeCast.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 #include diff --git a/backends/aoti/slim/c10/util/TypeSafeSignMath.h b/backends/aoti/slim/c10/util/TypeSafeSignMath.h index c70e27c0fd9..54536c6d2a9 100644 --- a/backends/aoti/slim/c10/util/TypeSafeSignMath.h +++ b/backends/aoti/slim/c10/util/TypeSafeSignMath.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Thin wrapper to reuse ExecuTorch's c10 TypeSafeSignMath implementation. diff --git a/backends/aoti/slim/c10/util/accumulate.h b/backends/aoti/slim/c10/util/accumulate.h index c962de50f18..bed268fbc27 100644 --- a/backends/aoti/slim/c10/util/accumulate.h +++ b/backends/aoti/slim/c10/util/accumulate.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + // Copyright 2004-present Facebook. All Rights Reserved. #pragma once diff --git a/backends/aoti/slim/c10/util/bit_cast.h b/backends/aoti/slim/c10/util/bit_cast.h index c40729c7c73..67e1e2006fa 100644 --- a/backends/aoti/slim/c10/util/bit_cast.h +++ b/backends/aoti/slim/c10/util/bit_cast.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Thin wrapper to reuse ExecuTorch's c10::bit_cast implementation. diff --git a/backends/aoti/slim/c10/util/bits.h b/backends/aoti/slim/c10/util/bits.h index d04f88dafc8..e361dbdea7b 100644 --- a/backends/aoti/slim/c10/util/bits.h +++ b/backends/aoti/slim/c10/util/bits.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/complex.h b/backends/aoti/slim/c10/util/complex.h index b48ef792ed7..42c59b62ad3 100644 --- a/backends/aoti/slim/c10/util/complex.h +++ b/backends/aoti/slim/c10/util/complex.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/complex_math.h b/backends/aoti/slim/c10/util/complex_math.h index 3ada9db6f00..3ac82dc5ee9 100644 --- a/backends/aoti/slim/c10/util/complex_math.h +++ b/backends/aoti/slim/c10/util/complex_math.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + #if !defined(STANDALONE_INTERNAL_INCLUDE_COMPLEX_REMAINING_H) #error \ "standalone/c10/util/complex_math.h is not meant to be individually included. Include standalone/c10/util/complex.h instead." diff --git a/backends/aoti/slim/c10/util/complex_utils.h b/backends/aoti/slim/c10/util/complex_utils.h index af6d8203c65..77ec04ca302 100644 --- a/backends/aoti/slim/c10/util/complex_utils.h +++ b/backends/aoti/slim/c10/util/complex_utils.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + #if !defined(STANDALONE_INTERNAL_INCLUDE_COMPLEX_REMAINING_H) #error \ "standalone/c10/util/complex_utils.h is not meant to be individually included. Include standalone/c10/util/complex.h instead." diff --git a/backends/aoti/slim/c10/util/copysign.h b/backends/aoti/slim/c10/util/copysign.h index ff0b0fcc847..49e9f60ad56 100644 --- a/backends/aoti/slim/c10/util/copysign.h +++ b/backends/aoti/slim/c10/util/copysign.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/floating_point_utils.h b/backends/aoti/slim/c10/util/floating_point_utils.h index bb146b21ae5..6580e0e3e13 100644 --- a/backends/aoti/slim/c10/util/floating_point_utils.h +++ b/backends/aoti/slim/c10/util/floating_point_utils.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Thin wrapper to reuse ExecuTorch's c10 floating_point_utils implementation. diff --git a/backends/aoti/slim/c10/util/generic_math.h b/backends/aoti/slim/c10/util/generic_math.h index 6cc9ec72bec..d4e928d8f1c 100644 --- a/backends/aoti/slim/c10/util/generic_math.h +++ b/backends/aoti/slim/c10/util/generic_math.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/irange.h b/backends/aoti/slim/c10/util/irange.h index e199cd92012..9ed5a00a031 100644 --- a/backends/aoti/slim/c10/util/irange.h +++ b/backends/aoti/slim/c10/util/irange.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Thin wrapper to reuse ExecuTorch's c10::irange implementation. diff --git a/backends/aoti/slim/c10/util/llvmMathExtras.h b/backends/aoti/slim/c10/util/llvmMathExtras.h index 537983dd4f9..7f9f8df4319 100644 --- a/backends/aoti/slim/c10/util/llvmMathExtras.h +++ b/backends/aoti/slim/c10/util/llvmMathExtras.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Thin wrapper to reuse ExecuTorch's c10 llvmMathExtras implementation. diff --git a/backends/aoti/slim/c10/util/overflows.h b/backends/aoti/slim/c10/util/overflows.h index df2502d7910..f0be0e83ee5 100644 --- a/backends/aoti/slim/c10/util/overflows.h +++ b/backends/aoti/slim/c10/util/overflows.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/qint32.h b/backends/aoti/slim/c10/util/qint32.h index 2d3f72e9a10..2b006c6b1ef 100644 --- a/backends/aoti/slim/c10/util/qint32.h +++ b/backends/aoti/slim/c10/util/qint32.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/qint8.h b/backends/aoti/slim/c10/util/qint8.h index f08ce5bfc3f..801ed9d6bb3 100644 --- a/backends/aoti/slim/c10/util/qint8.h +++ b/backends/aoti/slim/c10/util/qint8.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/quint2x4.h b/backends/aoti/slim/c10/util/quint2x4.h index e80848cd9eb..0be898a7412 100644 --- a/backends/aoti/slim/c10/util/quint2x4.h +++ b/backends/aoti/slim/c10/util/quint2x4.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/quint4x2.h b/backends/aoti/slim/c10/util/quint4x2.h index 1c2f8350596..f48f0d1c220 100644 --- a/backends/aoti/slim/c10/util/quint4x2.h +++ b/backends/aoti/slim/c10/util/quint4x2.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/quint8.h b/backends/aoti/slim/c10/util/quint8.h index e8649bc4fa8..db777baddc0 100644 --- a/backends/aoti/slim/c10/util/quint8.h +++ b/backends/aoti/slim/c10/util/quint8.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/c10/util/safe_numerics.h b/backends/aoti/slim/c10/util/safe_numerics.h index c5dbd24dd57..545bc0aa8e9 100644 --- a/backends/aoti/slim/c10/util/safe_numerics.h +++ b/backends/aoti/slim/c10/util/safe_numerics.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Thin wrapper to reuse ExecuTorch's c10 safe_numerics implementation. diff --git a/backends/aoti/slim/core/SlimTensor.h b/backends/aoti/slim/core/SlimTensor.h index 9d21b5a8288..1a2bcaa6ebe 100644 --- a/backends/aoti/slim/core/SlimTensor.h +++ b/backends/aoti/slim/core/SlimTensor.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/core/SlimTensorResize-incl.h b/backends/aoti/slim/core/SlimTensorResize-incl.h index 68a6fb637b3..1a0a2f1ea88 100644 --- a/backends/aoti/slim/core/SlimTensorResize-incl.h +++ b/backends/aoti/slim/core/SlimTensorResize-incl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/core/SlimTensorView-incl.h b/backends/aoti/slim/core/SlimTensorView-incl.h index 8d018f25657..1dcd4d83d55 100644 --- a/backends/aoti/slim/core/SlimTensorView-incl.h +++ b/backends/aoti/slim/core/SlimTensorView-incl.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/core/Storage.h b/backends/aoti/slim/core/Storage.h index be607fd53cf..d205a0f03a6 100644 --- a/backends/aoti/slim/core/Storage.h +++ b/backends/aoti/slim/core/Storage.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 #include diff --git a/backends/aoti/slim/cuda/Guard.h b/backends/aoti/slim/cuda/Guard.h index 6a42b3b6735..18d07ed19e5 100644 --- a/backends/aoti/slim/cuda/Guard.h +++ b/backends/aoti/slim/cuda/Guard.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/factory/Empty.h b/backends/aoti/slim/factory/Empty.h index a8aa8ddc414..0392459b097 100644 --- a/backends/aoti/slim/factory/Empty.h +++ b/backends/aoti/slim/factory/Empty.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/factory/Factory.h b/backends/aoti/slim/factory/Factory.h index b96df87ad45..e089e6730f5 100644 --- a/backends/aoti/slim/factory/Factory.h +++ b/backends/aoti/slim/factory/Factory.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/factory/FromBlob.h b/backends/aoti/slim/factory/FromBlob.h index 5c66129457b..1ec0ee8961c 100644 --- a/backends/aoti/slim/factory/FromBlob.h +++ b/backends/aoti/slim/factory/FromBlob.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/factory/FromScalar.h b/backends/aoti/slim/factory/FromScalar.h index df01121a6f7..0b8f7c498b0 100644 --- a/backends/aoti/slim/factory/FromScalar.h +++ b/backends/aoti/slim/factory/FromScalar.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/factory/Pad.h b/backends/aoti/slim/factory/Pad.h index b71b8b595c0..c3e1a4ed972 100644 --- a/backends/aoti/slim/factory/Pad.h +++ b/backends/aoti/slim/factory/Pad.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/util/ArrayRefUtil.h b/backends/aoti/slim/util/ArrayRefUtil.h index 61dc48ff0a1..873ca0f0c54 100644 --- a/backends/aoti/slim/util/ArrayRefUtil.h +++ b/backends/aoti/slim/util/ArrayRefUtil.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 // Utilities for working with ExecuTorch's ArrayRef in SlimTensor code. diff --git a/backends/aoti/slim/util/SharedPtr.h b/backends/aoti/slim/util/SharedPtr.h index 10d498f3395..ee22a83dd05 100644 --- a/backends/aoti/slim/util/SharedPtr.h +++ b/backends/aoti/slim/util/SharedPtr.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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 diff --git a/backends/aoti/slim/util/SizeUtil.h b/backends/aoti/slim/util/SizeUtil.h index 3e18d98577e..12fdad906c5 100644 --- a/backends/aoti/slim/util/SizeUtil.h +++ b/backends/aoti/slim/util/SizeUtil.h @@ -1,3 +1,11 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * 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