Skip to content

Commit

Permalink
FIX: compute ArraySize with len() in tnp backend
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jan 11, 2024
1 parent 2316267 commit 3185ec8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tensorwaves/function/sympy/_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ class TensorflowPrinter(CustomNumPyPrinter):
def __init__(self) -> None:
# https://github.com/sympy/sympy/blob/f1384c2/sympy/printing/printer.py#L21-L72
super().__init__()
self.known_functions["ArraySize"] = "len"
self.known_functions["ComplexSqrt"] = "sqrt"
self.printmethod = "_tensorflow_code"

0 comments on commit 3185ec8

Please sign in to comment.