Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed Jul 4, 2024
1 parent 261678d commit 6bc2fdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/container/jax_nsys/Analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@
" generate_compilation_statistics,\n",
" load_profiler_data,\n",
" remove_autotuning_detail,\n",
" remove_child_ranges,\n",
" xla_module_metadata,\n",
")\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import os\n",
"import pandas as pd # type: ignore\n",
"import sys"
"import numpy as np"
]
},
{
Expand All @@ -35,7 +31,7 @@
"source": [
"# Make sure that the .proto files under protos/ have been compiled to .py, and\n",
"# that those generated .py files are importable.]\n",
"ensure_compiled_protos_are_importable();"
"compiled_dir = ensure_compiled_protos_are_importable()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def ensure_compiled_protos_are_importable(*, prefix: pathlib.Path = pathlib.Path

def do_import():
# Use this as a proxy for everything being importable
from xla.service import hlo_pb2
from xla.service import hlo_pb2 # noqa: F401

try:
do_import()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
load_profiler_data,
remove_autotuning_detail,
)
import pandas as pd
import pathlib

parser = argparse.ArgumentParser(
Expand All @@ -26,6 +25,7 @@
# Partition the profile data into initialisation and steady-state running
init, steady_state = apply_warmup_heuristics(all_data)
# Get high-level statistics about the modules that were profiled
assert steady_state.module is not None
module_stats = (
steady_state.module.groupby("ProgramId")
.agg(
Expand Down

0 comments on commit 6bc2fdc

Please sign in to comment.