Skip to content

Commit 4ca7f49

Browse files
authored
Add license header to files (#905)
* need license header on every file * apparently the validator only reports the first violation it finds not all of them * typeo
1 parent 9725a60 commit 4ca7f49

File tree

13 files changed

+86
-1
lines changed

13 files changed

+86
-1
lines changed

android/Torchchat/app/build.gradle.kts

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
plugins {
28
id("com.android.application")
39
}

android/Torchchat/app/proguard-rules.pro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
4+
# This source code is licensed under the license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
18
# Add project specific ProGuard rules here.
29
# You can control the set of applied configuration files using the
310
# proguardFiles setting in build.gradle.
@@ -18,4 +25,4 @@
1825

1926
# If you keep the line number information, uncomment this to
2027
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
28+
#-renamesourcefileattribute SourceFile

android/Torchchat/build.gradle.kts

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
// Top-level build file where you can add configuration options common to all sub-projects/modules.
28
plugins {
39
id("com.android.application") version "8.1.0" apply false

android/Torchchat/gradle.properties

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
# Project-wide Gradle settings.
28
# IDE (e.g. Android Studio) users:
39
# Gradle settings configured through the IDE *will override*

android/Torchchat/gradle/wrapper/gradle-wrapper.properties

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
#Thu Apr 25 21:54:24 PDT 2024
28
distributionBase=GRADLE_USER_HOME
39
distributionPath=wrapper/dists

build/model_aoti.py

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
import torch
28
import torch.nn as nn
39
from torch._inductor.codecache import AsyncCompile

build/model_et.py

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
import torch
28
import torch.nn as nn
39
from executorch.extension.pybindings import portable_lib as exec_lib

quantization/qops.py

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
from typing import Optional
28

39
import torch

runner/run.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the license found in the
6+
LICENSE file in the root directory of this source tree.
7+
*/
8+
19
/* Inference for Llama-2 Transformer model in pure C++ */
210
#include <ctype.h>
311
#include <math.h>

scripts/patch_triton.py

Lines changed: 6 additions & 0 deletions
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 license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
17
#!/usr/bin/env python3
28
# Delete me after triton is updated past https://github.com/triton-lang/triton/pull/3564
39

scripts/updown.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
# All rights reserved.
3+
4+
# This source code is licensed under the license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
7+
18
import argparse
29
import os
310
import re

unsupported/llama2.c/runner-aoti/run.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the BSD-style license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
19
/* Inference for Llama-2 Transformer model in pure C */
210
/* this uses the same logic regardless of AOTI OR ET */
311
/* but requires different data types - ATen vs ETen */

unsupported/llama2.c/runner/run.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* Copyright (c) Meta Platforms, Inc. and affiliates.
2+
All rights reserved.
3+
4+
This source code is licensed under the license found in the
5+
LICENSE file in the root directory of this source tree.
6+
*/
7+
18
/* Inference for Llama-2 Transformer model in pure C */
29

310
#include <stdint.h>

0 commit comments

Comments
 (0)