Skip to content

Commit 9986410

Browse files
committed
fix graph
1 parent b35f699 commit 9986410

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_doc/technical/plot_layer_norm_discrepancies.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def cast_feeds(itype, provider, feeds):
143143
# %%
144144
# Visually.
145145

146-
df["abs"].plot(title="Discrepancies ORT / torch for LayerNorm(X) @ W + B")
146+
df["abs"].plot.bar(title="Discrepancies ORT / torch for LayerNorm(X) @ W + B")
147147

148148
# %%
149149
# The discrepancies are significant on CUDA, higher for float16.
@@ -207,4 +207,6 @@ def cast_feeds(itype, provider, feeds):
207207
# %%
208208
# Visually.
209209

210-
df[["diff_ort", "diff_torch"]].plot(title="ORT/Torch or Torch/ORT for LayerNorm(X) @ W + B")
210+
df[["diff_ort", "diff_torch"]].plot.bar(
211+
title="ORT/Torch or Torch/ORT for LayerNorm(X) @ W + B"
212+
)

0 commit comments

Comments
 (0)