You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: pytorch#1165
Refactor dependency chain following:
https://docs.google.com/document/d/1vuU9UdQA5bq3WU7YnEgJowq9ey6vkF3KUKA0rpIxxIY/edit#heading=h.8raqyft9y50
**New dep chain:**
op_<op>.cpp -> selected_op_variants.h
selected_op_variants.h -> scalar_type_util
**Old dep chain:**
op_<op>.cpp -> scalar_type_util
scalar_type_util -> selected_op_variants.h
**Testing**
Add e2e test with addmul model
Update unit test to use addmul model
Gated to only run with fbcode, as there is dependency on exir which is only in fbcode.
Reviewed By: larryliu0820
Differential Revision: D51036567
fbshipit-source-id: ba76b3c61fc9c044232b0ae66f4dba788254bfab
Copy file name to clipboardExpand all lines: examples/selective_build/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Check out `targets.bzl` for demo of 3 selective build APIs:
21
21
22
22
Other configs:
23
23
-`--config executorch.max_kernel_num=N`: Only allocate memory for the required number of operators. Take this result from `selected_operators.yaml`.
24
-
-`--config executorch.dtype_selective_build_lib=<executorch_generated_lib_name>`: Use dtype selective build. For each op, we register the dtypes that are used. Eg. if the model only uses the float implementation of add, then only the float add will be registered. Pass in the executorch_generated_lib name (see buck2 list example).
24
+
-`--config executorch.dtype_selective_build_lib=<executorch_generated_lib_name>`: Use dtype selective build. For each op, we register the dtypes that are used. Eg. if the model only uses the float implementation of add, then only the float add will be registered. Pass in the executorch_generated_lib name (see buck2 model example in targets.bzl).
0 commit comments