Skip to content

Commit

Permalink
fix the formatting since mine accidentally broke it
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin committed Feb 13, 2025
1 parent cfd824d commit fd4ebb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calyx-py/calyx/gen_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ def generate_exp_taylor_series_approximation(
Reference: https://en.wikipedia.org/wiki/Taylor_series#Exponential_function
"""
# TODO(cgyurgyik): Support any degree.
assert degree > 0 and log2(degree).is_integer(), (
f"The degree: {degree} should be a power of 2."
)
assert (
degree > 0 and log2(degree).is_integer()
), f"The degree: {degree} should be a power of 2."

comp = builder.component("exp")
comp.input("x", width)
Expand Down

0 comments on commit fd4ebb6

Please sign in to comment.