1load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") 2load("@fbcode_macros//build_defs:python_library.bzl", "python_library") 3 4oncall("executorch") 5 6python_library( 7 name = "inspector", 8 srcs = [ 9 "_inspector.py", 10 ], 11 deps = [ 12 "fbsource//third-party/pypi/ipython:ipython", 13 "fbsource//third-party/pypi/numpy:numpy", 14 "fbsource//third-party/pypi/pandas:pandas", 15 "fbsource//third-party/pypi/tabulate:tabulate", 16 ":inspector_utils", 17 "//executorch/devtools/debug_format:et_schema", 18 "//executorch/devtools/etdump:schema_flatcc", 19 "//executorch/devtools/etrecord:etrecord", 20 "//executorch/exir:lib", 21 ], 22) 23 24python_binary( 25 name = "inspector_cli", 26 main_function = ".inspector_cli.main", 27 main_src = "inspector_cli.py", 28 deps = [ 29 "//executorch/devtools:lib", 30 "//executorch/devtools/inspector:lib", 31 ], 32) 33 34python_library( 35 name = "inspector_utils", 36 srcs = [ 37 "_inspector_utils.py", 38 ], 39 deps = [ 40 "fbsource//third-party/pypi/matplotlib:matplotlib", 41 "fbsource//third-party/pypi/numpy:numpy", 42 "//caffe2:torch", 43 "//executorch/devtools/debug_format:base_schema", 44 "//executorch/devtools/debug_format:et_schema", 45 "//executorch/devtools/etdump:schema_flatcc", 46 "//executorch/devtools/etdump:serialize", 47 "//executorch/devtools/etrecord:etrecord", 48 ], 49) 50 51python_library( 52 name = "lib", 53 srcs = ["__init__.py"], 54 deps = [ 55 ":inspector", 56 ":inspector_utils", 57 ], 58) 59