Justin Fu 54ac172b4c [Pallas] Refactor Pallas HLO interpret mode to a standalone file.
Also replaces the interpreter context (used only for handling extended dtypes) with a physicalize Jaxpr pass.

PiperOrigin-RevId: 720371033
2025-01-27 17:52:27 -08:00

52 lines
1.3 KiB
Python

# Copyright 2023 The JAX Authors.
#
# 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.
load("@rules_python//python:defs.bzl", "py_library")
load(
"//jaxlib:jax.bzl",
"py_deps",
)
package(
default_applicable_licenses = [],
default_visibility = [
"//jax:internal",
],
)
py_library(
name = "pallas",
srcs = [
"__init__.py",
"core.py",
"cost_estimate.py",
"helpers.py",
"hlo_interpreter.py",
"pallas_call.py",
"primitives.py",
"utils.py",
],
deps = [
"//jax",
"//jax:ad_util",
"//jax:core",
"//jax:mlir",
"//jax:partial_eval",
"//jax:pretty_printer",
"//jax:tree_util",
"//jax:util",
"//jax/_src/lib",
] + py_deps("numpy"),
)