Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/Contiguity.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/util/irange.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/Device.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/core/DeviceType.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/DeviceType.h
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/Layout.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/runtime/platform/assert.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/MemoryFormat.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/runtime/core/array_ref.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/Scalar.h
Original file line number Diff line number Diff line change
@@ -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 <cstdint>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/ScalarType.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/util/Array.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/SizesAndStrides.h
Original file line number Diff line number Diff line change
@@ -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 <algorithm>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/core/WrapDimMinimal.h
Original file line number Diff line number Diff line change
@@ -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 <cstdint>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/cuda/Exception.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/macros/Macros.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Array.h
Original file line number Diff line number Diff line change
@@ -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 <array>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/BFloat16-inl.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/BFloat16-math.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/util/BFloat16.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/BFloat16.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float4_e2m1fn_x2.h
Original file line number Diff line number Diff line change
@@ -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 <cstdint>

Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e4m3fn-inl.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e4m3fn.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e4m3fnuz-inl.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e4m3fnuz.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e5m2-inl.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e5m2.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e5m2fnuz-inl.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e5m2fnuz.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e8m0fnu-inl.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_e8m0fnu.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Float8_fnuz_cvt.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/util/floating_point_utils.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Half-inl.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/Half.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/StringUtil.h
Original file line number Diff line number Diff line change
@@ -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 <sstream>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/TypeCast.h
Original file line number Diff line number Diff line change
@@ -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 <executorch/backends/aoti/slim/c10/macros/Macros.h>
#include <executorch/backends/aoti/slim/c10/util/BFloat16.h>
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/TypeSafeSignMath.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 8 additions & 0 deletions backends/aoti/slim/c10/util/accumulate.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading
Loading