Commit Graph

5 Commits

Author SHA1 Message Date
a563a4880f [Edge] Add an option to avoid adding base ops to static op library (#84360)
Summary: We use a static op library in a test for PyTorch C++ usages, but don't want to introduce all base ops. Because the goal is to check if a given model can run on the exact op collection (i.e., fbios ops, fb4a ops), and these base ops are not present in real apps. So add an option to disable this feature.

Test Plan: Build. Expect no change to existing targets.

Differential Revision: D39164021

Pull Request resolved: https://github.com/pytorch/pytorch/pull/84360
Approved by: https://github.com/kit1980
2022-09-01 22:32:55 +00:00
71e16f9eef [build] Add fbsource keyword to pt_operator_libarary (#81298)
Summary:
Adding `fbsource` keyword to `pt_operator_library`

Test Plan: Rely on CI

Differential Revision: D37256879

Pull Request resolved: https://github.com/pytorch/pytorch/pull/81298
Approved by: https://github.com/linbinyu
2022-07-18 19:13:04 +00:00
b62d39eda0 Consolidate all python targets in the tools folder (#80408)
Summary:
All buck targets that points to caffe2/tools folder are now moved to tools/BUCK.
This also eliminates all python library/binary import in pt_defs.bzl, which caused T124308913.

Test Plan: CI

Differential Revision: D37468313

Pull Request resolved: https://github.com/pytorch/pytorch/pull/80408
Approved by: https://github.com/seemethere, https://github.com/malfet
2022-06-29 23:27:47 +00:00
e98e7fe428 [4] move pt_operator_library to shared BUCK file (#80170)
Summary:
Move pt_operator_library to pt_ops.bzl and make it shared with OSS BUCK build

This will replace D36912042. I will update all load statements in future diffs.

Test Plan: sandcaslte, OSS CI

Differential Revision: D37390060

Pull Request resolved: https://github.com/pytorch/pytorch/pull/80170
Approved by: https://github.com/JacobSzwejbka
2022-06-24 21:51:20 +00:00
55aa0b1a84 sync pt_ops.bzl (#80194)
sync from fbsource

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/80194
Approved by: https://github.com/mehtanirav, https://github.com/bigfootjon, https://github.com/malfet
2022-06-24 02:57:30 +00:00