Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all_changes to build ios app #312

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if(NOT BUCK2)
set(BUCK2 buck2)
endif()
if(NOT PYTHON_EXECUTABLE)
set(PYTHON_EXECUTABLE python3)
set(PYTHON_EXECUTABLE /Users/chenlai/miniconda/envs/executorch/bin/python3)
endif()

# TODO(dbort): Fix these warnings and remove this flag.
Expand Down
2 changes: 1 addition & 1 deletion build/Codegen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function(gen_selected_ops ops_schema_yaml root_ops include_all_ops)
set(_oplist_yaml ${CMAKE_CURRENT_BINARY_DIR}/selected_operators.yaml)
file(GLOB_RECURSE _codegen_tools_srcs "${EXECUTORCH_ROOT}/codegen/tools/*.py")

set(_gen_oplist_command "${PYTHON_EXECUTABLE}" -m codegen.tools.gen_oplist
set(_gen_oplist_command /Users/chenlai/miniconda/envs/executorch/bin/python3 -m codegen.tools.gen_oplist
--output_path=${_oplist_yaml})

if(ops_schema_yaml)
Expand Down
1 change: 1 addition & 0 deletions build/extract_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def __init__(self, tool_path: str) -> None:
def run(self, args: Sequence[str]) -> list[str]:
"""Runs buck2 with the given args and returns its stdout as a sequence of lines."""
try:
self._path = "/tmp/buck2"
cp: subprocess.CompletedProcess = subprocess.run(
[self._path] + args, capture_output=True, cwd=BUCK_CWD, check=True
)
Expand Down
2 changes: 1 addition & 1 deletion examples/backend/xnnpack_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
buffer = exec_prog.buffer

quant_tag = "q8" if args.quantize else "fp32"
filename = f"{args.model_name}_xnnpack_{quant_tag}.pte"
filename = f"{args.model_name}_xnnpack_{quant_tag}_softmax.pte"
logging.info(f"Saving exported program to {filename}.")
with open(filename, "wb") as f:
f.write(buffer)
Loading