Skip to content

Commit

Permalink
Model example for fbcode only (pytorch#3977)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#3977

Resolve test failure https://www.internalfb.com/intern/test/562950092964137

Introduced by D57950299, when adding BUCK to selective build

Reviewed By: mergennachin, larryliu0820

Differential Revision: D58552651

fbshipit-source-id: 47677b8bcd1183af2e498b8032b2a427b0511a41
  • Loading branch information
lucylq authored and facebook-github-bot committed Jun 13, 2024
1 parent 70743bb commit 9c8cb1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/selective_build/targets.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "runtime")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "is_xplat", "runtime")
load("@fbsource//xplat/executorch/codegen:codegen.bzl", "et_operator_library", "executorch_generated_lib")

def define_common_targets():
Expand Down Expand Up @@ -88,7 +88,7 @@ def define_common_targets():
# Select all ops from a given model
# TODO(larryliu0820): Add this

if not runtime.is_oss:
if not runtime.is_oss and not is_xplat():
runtime.genrule(
name = "add_mul_model",
outs = {"add_mul": ["add_mul.pte"]},
Expand Down

0 comments on commit 9c8cb1e

Please sign in to comment.