diff --git a/dl3/android/DeepLabV3Demo/export_model.py b/dl3/android/DeepLabV3Demo/export_model.py index 6e1cfbf47e..9b5090fb6e 100644 --- a/dl3/android/DeepLabV3Demo/export_model.py +++ b/dl3/android/DeepLabV3Demo/export_model.py @@ -1,3 +1,9 @@ +# 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. + import torch import torchvision.models as models from executorch.backends.xnnpack.partition.xnnpack_partitioner import XnnpackPartitioner diff --git a/mv2/cpp/build.sh b/mv2/cpp/build.sh index 1672afd405..5e6f26c9c7 100755 --- a/mv2/cpp/build.sh +++ b/mv2/cpp/build.sh @@ -1,4 +1,11 @@ #!/bin/bash + +# 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. + set -e # Create build directory if it doesn't exist diff --git a/mv2/cpp/main.cpp b/mv2/cpp/main.cpp index d553257c7d..44862847b4 100644 --- a/mv2/cpp/main.cpp +++ b/mv2/cpp/main.cpp @@ -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. + */ + #include #include #include diff --git a/mv2/python/export.py b/mv2/python/export.py index 80d8314c9f..3720f7a270 100644 --- a/mv2/python/export.py +++ b/mv2/python/export.py @@ -1,3 +1,9 @@ +# 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. + import torch import torchvision.models as models from torchvision.models.mobilenetv2 import MobileNet_V2_Weights diff --git a/mv2/python/run.py b/mv2/python/run.py index 4d312e54ca..54e4bf2da3 100644 --- a/mv2/python/run.py +++ b/mv2/python/run.py @@ -1,3 +1,9 @@ +# 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. + import torch from executorch.runtime import Runtime from typing import List diff --git a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/MainActivity.kt b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/MainActivity.kt index 183a9f9079..9ef1d900a6 100644 --- a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/MainActivity.kt +++ b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/MainActivity.kt @@ -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. + */ + package com.example.parakeetapp import android.Manifest diff --git a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadScreen.kt b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadScreen.kt index 9aa3283629..cbc0449806 100644 --- a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadScreen.kt +++ b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadScreen.kt @@ -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. + */ + package com.example.parakeetapp import androidx.compose.foundation.layout.Arrangement diff --git a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadViewModel.kt b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadViewModel.kt index 1b60bfb6e4..30a6a362de 100644 --- a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadViewModel.kt +++ b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelDownloadViewModel.kt @@ -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. + */ + package com.example.parakeetapp import android.util.Log diff --git a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettings.kt b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettings.kt index f45b427eb0..8aebfd008b 100644 --- a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettings.kt +++ b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettings.kt @@ -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. + */ + package com.example.parakeetapp /** diff --git a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsScreen.kt b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsScreen.kt index 6f32a601f1..582ca84c61 100644 --- a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsScreen.kt +++ b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsScreen.kt @@ -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. + */ + package com.example.parakeetapp import androidx.compose.foundation.clickable diff --git a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsViewModel.kt b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsViewModel.kt index f46731d266..73d493fa69 100644 --- a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsViewModel.kt +++ b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ModelSettingsViewModel.kt @@ -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. + */ + package com.example.parakeetapp import androidx.compose.runtime.getValue diff --git a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ui/theme/Theme.kt b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ui/theme/Theme.kt index 41a0e03d43..1e38806219 100644 --- a/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ui/theme/Theme.kt +++ b/parakeet/android/ParakeetApp/app/src/main/java/com/example/parakeetapp/ui/theme/Theme.kt @@ -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. + */ + package com.example.parakeetapp.ui.theme import android.os.Build diff --git a/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsTest.kt b/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsTest.kt index 8dd0f003d7..bdf0d1c38c 100644 --- a/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsTest.kt +++ b/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsTest.kt @@ -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. + */ + package com.example.parakeetapp import org.junit.Assert.* diff --git a/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsViewModelTest.kt b/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsViewModelTest.kt index 192b9ebd18..3e78b5492a 100644 --- a/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsViewModelTest.kt +++ b/parakeet/android/ParakeetApp/app/src/test/java/com/example/parakeetapp/ModelSettingsViewModelTest.kt @@ -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. + */ + package com.example.parakeetapp import org.junit.Assert.assertEquals diff --git a/program-data-separation/cpp/linear_example/build_example.sh b/program-data-separation/cpp/linear_example/build_example.sh index ce622cf86c..56fe8c3be2 100755 --- a/program-data-separation/cpp/linear_example/build_example.sh +++ b/program-data-separation/cpp/linear_example/build_example.sh @@ -1,4 +1,11 @@ #!/bin/bash + +# 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. + set -e # Clean and create build directory if it doesn't exist diff --git a/program-data-separation/cpp/lora_example/build_example.sh b/program-data-separation/cpp/lora_example/build_example.sh index 538138c9ad..dfc47c964a 100644 --- a/program-data-separation/cpp/lora_example/build_example.sh +++ b/program-data-separation/cpp/lora_example/build_example.sh @@ -1,4 +1,11 @@ #!/bin/bash + +# 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. + set -e # Clean and create build directory if it doesn't exist diff --git a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/MainActivity.kt b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/MainActivity.kt index 265e0d8c98..fddb8152f3 100644 --- a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/MainActivity.kt +++ b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/MainActivity.kt @@ -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. + */ + package com.example.whisperapp import android.Manifest diff --git a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadScreen.kt b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadScreen.kt index b8dd51f2bc..073d1f272b 100644 --- a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadScreen.kt +++ b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadScreen.kt @@ -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. + */ + package com.example.whisperapp import androidx.compose.foundation.layout.Arrangement diff --git a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadViewModel.kt b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadViewModel.kt index 37cd1ba234..918951dc40 100644 --- a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadViewModel.kt +++ b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelDownloadViewModel.kt @@ -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. + */ + package com.example.whisperapp import android.util.Log diff --git a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettings.kt b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettings.kt index 74c6e816a1..f2a9a38f3c 100644 --- a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettings.kt +++ b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettings.kt @@ -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. + */ + package com.example.whisperapp /** diff --git a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsScreen.kt b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsScreen.kt index 0f582b268a..8ec68d0434 100644 --- a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsScreen.kt +++ b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsScreen.kt @@ -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. + */ + package com.example.whisperapp import androidx.compose.foundation.clickable diff --git a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsViewModel.kt b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsViewModel.kt index 46ef6209b0..7cccb435b8 100644 --- a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsViewModel.kt +++ b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ModelSettingsViewModel.kt @@ -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. + */ + package com.example.whisperapp import androidx.compose.runtime.getValue diff --git a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ui/theme/Theme.kt b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ui/theme/Theme.kt index 39b806169d..e7b4f4b784 100644 --- a/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ui/theme/Theme.kt +++ b/whisper/android/WhisperApp/app/src/main/java/com/example/whisperapp/ui/theme/Theme.kt @@ -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. + */ + package com.example.whisperapp.ui.theme import android.os.Build diff --git a/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsTest.kt b/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsTest.kt index 4060459d36..c1986e5715 100644 --- a/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsTest.kt +++ b/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsTest.kt @@ -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. + */ + package com.example.whisperapp import org.junit.Assert.* diff --git a/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsViewModelTest.kt b/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsViewModelTest.kt index f1ccb27662..000bca381d 100644 --- a/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsViewModelTest.kt +++ b/whisper/android/WhisperApp/app/src/test/java/com/example/whisperapp/ModelSettingsViewModelTest.kt @@ -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. + */ + package com.example.whisperapp import org.junit.Assert.assertEquals