Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
3f125b6
Update `sorted_vector_map`
JakobDegen May 8, 2024
25214d4
Use compile-time promotion to reduce max/min size & build time (#3459)
swolchok May 8, 2024
a2e1310
Use compile-time promotion to reduce floor_divide size & build time (…
swolchok May 8, 2024
ad33982
Use compile-time promotion to reduce remainder size & build time (#3458)
swolchok May 8, 2024
5c05def
Use compile-time promotion to reduce fmod size & build time (#3456)
swolchok May 8, 2024
7841e96
support Half in minimum and clamp (#3457)
swolchok May 8, 2024
c8f306d
Stylize struct members with snake_case (#3545)
May 8, 2024
2d68bd3
Rename `Allocator.*` as `vma_api.*` (#3552)
May 8, 2024
f8403ed
Error out when token is outside of vocab size (#3535)
cccclai May 9, 2024
dd81fc7
Fix backend/arm tests failing when there is no tosa installed (#3560)
zingo May 9, 2024
fff20a7
Update pytorch pin (#3562)
mergennachin May 9, 2024
21f5fbf
Catch check on symbolic shapes (#3537)
angelayi May 9, 2024
38c30d6
use utils:{min,max}_override in {min,max}imum ops (#3453)
swolchok May 9, 2024
8ebe1c9
Use compile-time promotion to reduce bitwise op size & build time (#3…
swolchok May 9, 2024
5adc8bf
Use compile-time promotion to reduce optimized mul op size & build ti…
swolchok May 9, 2024
a4110e0
Use compile-time promotion to reduce optimized add/sub op size & buil…
swolchok May 9, 2024
b3c3e65
Use compile-time promotion to reduce optimized le op size & build tim…
swolchok May 9, 2024
cc11541
make extract_delegate_segments=True by default (#3405)
May 9, 2024
edaae14
Split `Resource.h` into multiple files within `memory/` (#3553)
May 9, 2024
f6f881a
Remove unneeded `api::` prefix within `namespace api` (#3554)
May 9, 2024
ebdb152
Save and load VkPipelineCache data if path is specified (#3546)
May 9, 2024
cc2d3b5
Revise memory monitor to align with Xcode metrics (#3131)
May 9, 2024
2ac7f2a
Add support for method level executorch backend config (#3266)
tarun292 May 9, 2024
6c56122
Break flag bc (#3128)
mcr229 May 9, 2024
8a63430
add per-channel tests for linear (#3551)
mcr229 May 9, 2024
0563aa7
Disable view_copy elimination for graph outputs (#3565)
mcremon-meta May 9, 2024
749f6ab
Rust: Update sysinfo crate (#3520)
May 9, 2024
c83af25
Add target_link_options_shared_lib to coremldelegate build (#3556)
swolchok May 10, 2024
8e2e2e2
explicitly import _export.exported_program. (#3574)
zhxchen17 May 10, 2024
1871ec1
min pip version (#3526)
lucylq May 10, 2024
b93b7ae
Change custom_skip_targets meaning for constant_prop_pass (#3491)
dulinriley May 10, 2024
60fa0d3
build and upload aar (#3381)
kirklandsign May 10, 2024
43bfcd2
Batch norm (#3569)
yipjustin May 10, 2024
60c94e8
gelu (#3573)
copyrightly May 11, 2024
629b112
Cadence - refactor quantizer and passes (#3539)
mcremon-meta May 13, 2024
9db0a69
Simplify gen_oplist_copy_from_core file (#3549)
mergennachin May 13, 2024
c229e7b
Update README.md with correct link (#3591)
mergennachin May 13, 2024
a88a78d
Separate mm and addmm into separate implementation files + cleanup (#…
SS-JIA May 13, 2024
e288039
Comment out memory planning log (#3581)
lucylq May 13, 2024
87d828a
don't partition max pool with ceil mode (#3578)
mcr229 May 13, 2024
4b5e434
Reuse the existing clone of the ios toolchain for Core ML. (#3575)
shoumikhin May 13, 2024
ea9647f
Add support for slice_scatter; enable index_put (#3399)
DenisVieriu97 May 13, 2024
ebe701e
Install mpmath in pip installation (#3593)
mergennachin May 13, 2024
c853b3c
Add base for sgd optimizer (#3496)
May 13, 2024
c69861d
Ease Core ML partitioner and quantizer imports. (#3564)
shoumikhin May 13, 2024
01ce72c
Fix includes in Core ML backend. (#3603)
shoumikhin May 14, 2024
b64182d
Fix memory.view insertion except for output nodes (#3602)
dulinriley May 14, 2024
e8a520c
Fix headers search paths for nlohmann json in Core ML. (#3607)
shoumikhin May 14, 2024
0e7955d
Implement `aten.linear.default` (#3594)
SS-JIA May 14, 2024
39f9c0f
temporary disable dim order ops in executorch/examples to mitigate os…
Gasoonjia May 14, 2024
aaa2f2e
Add a way to run c++ unittest on OSS (#3606)
kirklandsign May 15, 2024
fb24c9d
Fix headers search paths for nlohmann json in Core ML. (#3614)
shoumikhin May 15, 2024
99ec946
Add typed-arena to oss shim (#3576)
cjhopman May 15, 2024
c2bc810
Update .gitmodules
dijopaul May 15, 2024
82e159e
adding nnlib repo
dijopaul May 15, 2024
6dfda8d
Update .gitmodules
dijopaul May 16, 2024
8cc2bd8
Adding build support for nnlib
dijopaul May 16, 2024
2ec6046
Adding cmakelist changes to link nnlib
dijopaul May 17, 2024
2da285e
Adding CFLAG updates
dijopaul May 22, 2024
5ad8ab0
Adding quantizer and dequantizer from nnlib
dijopaul May 28, 2024
6b6b80b
Moving nnlib obj and lib files to cmake build dir
dijopaul May 29, 2024
460e821
Merge branch 'dijopaul_add-nnlib' of https://github.com/dijopaul/exec…
dijopaul May 29, 2024
3328646
Clean up quantize and dequantize
dijopaul May 29, 2024
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
2 changes: 1 addition & 1 deletion .ci/docker/ci_commit_pins/pytorch.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b1984237a0fb32b760c1b84d6d02d2f0f7ed293b
48b6c8dbc376db4406a979b35cd6909bcb428931
3 changes: 2 additions & 1 deletion .ci/docker/common/install_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ install_ubuntu() {
unzip \
gdb \
rsync \
libssl-dev
libssl-dev \
zip

# Cleanup package manager
apt-get autoclean && apt-get clean
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
cp cmake-out-android-arm64-v8a/extension/android/*.so artifacts-to-be-uploaded/arm64-v8a/
cp cmake-out-android-x86_64/lib/*.a artifacts-to-be-uploaded/x86_64/
cp cmake-out-android-x86_64/extension/android/*.so artifacts-to-be-uploaded/x86_64/
# Copyp AAR to S3
cp build_aar/executorch.aar artifacts-to-be-uploaded/
cp build_aar/executorch-llama.aar artifacts-to-be-uploaded/

# Upload the app and its test suite to S3 so that they can be downloaded by the test job
upload-artifacts:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@
[submodule "third-party/ios-cmake"]
path = third-party/ios-cmake
url = https://github.com/leetal/ios-cmake
[submodule "backends/cadence/hifi/third-party/nnlib/nnlib-hifi4"]
path = backends/cadence/hifi/third-party/nnlib/nnlib-hifi4
url = https://github.com/foss-xtensa/nnlib-hifi4.git
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ target_link_libraries(executorch_no_prim_ops PRIVATE program_schema)
# Check if dl exists for this toolchain and only then link it.
find_library(DL_LIBRARY_EXISTS NAMES dl)
# Check if the library was found
if(DL_LIBRARY_EXISTS)
if(DL_LIBRARY_EXISTS AND NOT EXECUTORCH_BUILD_CADENCE)
target_link_libraries(executorch_no_prim_ops PRIVATE dl) # For dladdr()
endif()
target_include_directories(
Expand All @@ -443,7 +443,9 @@ target_link_options_shared_lib(executorch)
# Real integrations should supply their own YAML file that only lists the
# operators necessary for the models that will run.
#
if(NOT EXECUTORCH_BUILD_CADENCE)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/kernels/portable)
endif()

if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
# TODO: move all custom kernels to ${CMAKE_CURRENT_SOURCE_DIR}/kernels/custom
Expand Down Expand Up @@ -496,6 +498,8 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)

if(EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
list(APPEND _executor_runner_libs optimized_native_cpu_ops_lib)
elseif(EXECUTORCH_BUILD_CADENCE)
list(APPEND _executor_runner_libs cadence_ops_lib)
else()
list(APPEND _executor_runner_libs portable_ops_lib)
endif()
Expand Down Expand Up @@ -566,6 +570,10 @@ if(EXECUTORCH_BUILD_COREML)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/apple/coreml)
endif()

if(EXECUTORCH_BUILD_CADENCE)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/cadence)
endif()

if(EXECUTORCH_BUILD_PYBIND)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/third-party/pybind11)

Expand Down
2 changes: 2 additions & 0 deletions backends/apple/coreml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ target_link_libraries(
${FOUNDATION_FRAMEWORK} ${SQLITE_LIBRARY}
)

target_link_options_shared_lib(coremldelegate)

if(COREML_BUILD_EXECUTOR_RUNNER)
target_link_libraries(
coremldelegate PRIVATE portable_ops_lib portable_kernels
Expand Down
4 changes: 2 additions & 2 deletions backends/apple/coreml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import torch
import executorch.exir

from executorch.backends.apple.coreml.compiler import CoreMLBackend
from executorch.backends.apple.coreml.partition.coreml_partitioner import CoreMLPartitioner
from executorch.backends.apple.coreml.partition import CoreMLPartitioner

class Model(torch.nn.Module):
def __init__(self):
Expand Down Expand Up @@ -72,7 +72,7 @@ from torch.ao.quantization.quantize_pt2e import (
prepare_qat_pt2e,
)

from executorch.backends.apple.coreml.quantizer.coreml_quantizer import CoreMLQuantizer
from executorch.backends.apple.coreml.quantizer import CoreMLQuantizer
from coremltools.optimize.torch.quantization.quantization_config import (
LinearQuantizerConfig,
QuantizationScheme,
Expand Down
9 changes: 9 additions & 0 deletions backends/apple/coreml/partition/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright © 2023 Apple Inc. All rights reserved.
#
# Please refer to the license found in the LICENSE file in the root directory of the source tree.

from .coreml_partitioner import CoreMLPartitioner

__all__ = [
CoreMLPartitioner,
]
9 changes: 9 additions & 0 deletions backends/apple/coreml/quantizer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright © 2023 Apple Inc. All rights reserved.
#
# Please refer to the license found in the LICENSE file in the root directory of the source tree.

from .coreml_quantizer import CoreMLQuantizer

__all__ = [
CoreMLQuantizer,
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <assert.h>
#include <fstream>
#include <iostream>
#include <range.hpp>
#include <sstream>

#if __has_include(<filesystem>)
Expand All @@ -22,7 +21,8 @@ namespace filesystem = std::experimental::filesystem;
}
#endif

#include <reversed_memory_stream.hpp>
#include "range.hpp"
#include "reversed_memory_stream.hpp"

namespace {
using namespace inmemoryfs;
Expand Down
Loading