-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checkpoint/_src/arrays/BUILD and update dependencies on checkpoin…
…t/_src/arrays to these targets. PiperOrigin-RevId: 715238326
- Loading branch information
1 parent
2a7e309
commit b5c7971
Showing
3 changed files
with
109 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package( | ||
default_applicable_licenses = ["//:package_license"], | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
py_library( | ||
name = "types", | ||
srcs = ["types.py"], | ||
srcs_version = "PY3", | ||
) | ||
|
||
py_library( | ||
name = "numpy_utils", | ||
srcs = ["numpy_utils.py"], | ||
srcs_version = "PY3", | ||
deps = [":types"], | ||
) | ||
|
||
py_test( | ||
name = "numpy_utils_test", | ||
srcs = ["numpy_utils_test.py"], | ||
python_version = "PY3", | ||
srcs_version = "PY3", | ||
deps = [":numpy_utils"], | ||
) | ||
|
||
py_library( | ||
name = "fragments", | ||
srcs = ["fragments.py"], | ||
deps = [ | ||
":numpy_utils", | ||
":types", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "fragments_test", | ||
srcs = ["fragments_test.py"], | ||
python_version = "PY3", | ||
srcs_version = "PY3", | ||
deps = [":fragments"], | ||
) | ||
|
||
py_library( | ||
name = "subchunking", | ||
srcs = ["subchunking.py"], | ||
srcs_version = "PY3", | ||
deps = [ | ||
":fragments", | ||
":types", | ||
], | ||
) | ||
|
||
py_library( | ||
name = "abstract_arrays", | ||
srcs = ["abstract_arrays.py"], | ||
deps = [ | ||
":types", | ||
"//checkpoint/orbax/checkpoint/_src/metadata:sharding", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "abstract_arrays_test", | ||
srcs = ["abstract_arrays_test.py"], | ||
deps = [ | ||
":abstract_arrays", | ||
"//checkpoint/orbax/checkpoint/_src/serialization:type_handlers", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "subchunking_test", | ||
srcs = ["subchunking_test.py"], | ||
args = ["--vmodule=subchunking=1"], | ||
python_version = "PY3", | ||
srcs_version = "PY3", | ||
deps = [ | ||
":fragments", | ||
":subchunking", | ||
":types", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters