2022-09-22 12:26:48 -07:00
|
|
|
# Copyright 2019 The JAX Authors.
|
2019-06-15 14:28:38 -07:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2024-03-27 10:26:38 -07:00
|
|
|
load("@rules_python//python:defs.bzl", "py_library")
|
2022-07-01 15:06:54 -07:00
|
|
|
load(
|
|
|
|
"//jaxlib:jax.bzl",
|
2022-08-05 07:48:40 -07:00
|
|
|
"py_deps",
|
2022-07-01 15:06:54 -07:00
|
|
|
)
|
|
|
|
|
2019-09-26 14:51:24 -07:00
|
|
|
licenses(["notice"])
|
2019-06-15 14:28:38 -07:00
|
|
|
|
2023-04-19 13:26:24 -07:00
|
|
|
package(
|
|
|
|
default_applicable_licenses = [],
|
|
|
|
default_visibility = ["//visibility:public"],
|
|
|
|
)
|
2019-06-15 14:28:38 -07:00
|
|
|
|
2025-02-25 09:28:35 -08:00
|
|
|
py_library(
|
|
|
|
name = "pgo_nsys_converter",
|
|
|
|
srcs = [
|
|
|
|
"pgo_nsys_converter.py",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "colab_tpu",
|
|
|
|
srcs = [
|
|
|
|
"colab_tpu.py",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-06-15 14:28:38 -07:00
|
|
|
py_library(
|
2021-12-20 06:18:06 -08:00
|
|
|
name = "jax_to_ir",
|
2025-02-25 09:28:35 -08:00
|
|
|
srcs = [
|
|
|
|
"__init__.py",
|
|
|
|
"jax_to_ir.py",
|
|
|
|
],
|
2021-12-20 06:18:06 -08:00
|
|
|
tags = [
|
|
|
|
"ignore_for_dep=third_party.py.jax.experimental.jax2tf",
|
|
|
|
"ignore_for_dep=third_party.py.tensorflow",
|
|
|
|
],
|
|
|
|
deps = [
|
2022-07-01 15:06:54 -07:00
|
|
|
"//jax",
|
2021-12-20 06:18:06 -08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_library(
|
|
|
|
name = "jax_to_ir_with_tensorflow",
|
|
|
|
srcs = ["jax_to_ir.py"],
|
2019-06-15 14:28:38 -07:00
|
|
|
deps = [
|
2022-07-01 15:06:54 -07:00
|
|
|
"//jax",
|
|
|
|
"//jax/experimental/jax2tf",
|
2023-02-08 12:11:20 -08:00
|
|
|
] + py_deps("tensorflow_core"),
|
2019-06-15 14:28:38 -07:00
|
|
|
)
|