Skip to content

Commit 5e177d4

Browse files
committed
Update
[ghstack-poisoned]
1 parent 377dad4 commit 5e177d4

File tree

5 files changed

+2
-23
lines changed

5 files changed

+2
-23
lines changed

.ci/scripts/wheel/test_windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_model_xnnpack(model: Model, quantize: bool) -> None:
5656

5757
assert len(ref_outputs) == len(et_outputs)
5858
for i in range(len(ref_outputs)):
59-
assert torch.allclose(ref_outputs[i], et_outputs[i], atol=1e-5)
59+
assert torch.allclose(ref_outputs[i], et_outputs[i], atol=1e-4)
6060

6161

6262
def run_tests(model_tests: List[ModelTest]) -> None:

.ci/scripts/wheel/vc_env_helper.bat

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ if "%args%" == "" (
4141
echo e.g. vc_env_helper.bat cl /c test.cpp
4242
)
4343

44-
echo "Evaluating symlink status. CWD: %CD%"
4544
set work_dir=%CD%
4645
if exist setup.py (
4746
echo "Creating symlink..."
@@ -58,6 +57,5 @@ if exist setup.py (
5857
)
5958
cd executorch
6059
)
61-
echo "Post symlink CWD: %CD%"
6260

6361
%args% || exit /b 1

examples/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __str__(self) -> str:
4444

4545

4646
class Backend(str, Enum):
47-
Xnnpack = ("xnnpack",)
47+
Xnnpack = "xnnpack"
4848
XnnpackQuantizationDelegation = "xnnpack-quantization-delegation"
4949
CoreMlExportOnly = "coreml"
5050
CoreMlExportAndTest = "coreml-test" # AOT export + test with runner

setup.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,8 @@ def string(cls) -> str:
143143
def write_to_python_file(cls, path: str) -> None:
144144
"""Creates a file similar to PyTorch core's `torch/version.py`."""
145145

146-
print(f"Writing version.py to {path}, cwd: {os.getcwd()}", file=sys.stderr)
147-
148146
os.makedirs(os.path.dirname(path), exist_ok=True)
149147

150-
try:
151-
path1 = os.path.dirname(path)
152-
path2 = os.path.dirname(path1)
153-
154-
print(f"Files at {path2}: {list(os.listdir(path2))}", file=sys.stderr)
155-
print(f"Files at {path1}: {list(os.listdir(path1))}", file=sys.stderr)
156-
finally:
157-
pass
158-
159148
lines = [
160149
"from typing import Optional",
161150
'__all__ = ["__version__", "git_version"]',
@@ -166,9 +155,6 @@ def write_to_python_file(cls, path: str) -> None:
166155
with open(path, "w") as fp:
167156
fp.write("\n".join(lines) + "\n")
168157

169-
file_dir = os.path.dirname(path)
170-
print(f"Files: {list(os.listdir(file_dir))}", file=sys.stderr)
171-
172158

173159
# The build type is determined by the DEBUG environment variable. If DEBUG is
174160
# set to a non-empty value, the build type is Debug. Otherwise, the build type

third-party/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ else()
2525
set(_executorch_external_project_additional_args CMAKE_GENERATOR "Unix Makefiles")
2626
endif()
2727

28-
# DEBUG
29-
if(WIN32)
30-
set_directory_properties(PROPERTIES EP_BASE "C:\\actions-runner\\_work\\")
31-
endif()
32-
3328
# We use ExternalProject to build flatc from source to force it target the host.
3429
# Otherwise, flatc will target the project's toolchain (i.e. iOS, or Android).
3530
ExternalProject_Add(

0 commit comments

Comments
 (0)