Skip to content

Commit

Permalink
Add Expectation to main tg
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasahle committed Feb 16, 2025
1 parent 8c1f71b commit a6fe1b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tensorgrad import Variable, Product, Function, Derivative, Sum, Delta, Zero, Ones, function
from collections import defaultdict
import tensorgrad.functions as F
from tensorgrad.extras import Expectation
from tensorgrad import Expectation
from tensorgrad.extras.to_tikz import to_tikz
from tensorgrad.testutils import generate_random_tensor_expression, make_random_tree
from tensorgrad.imgtools import save_steps, save_as_image
Expand Down Expand Up @@ -297,4 +297,4 @@ def main18():
save_steps(expr)

if __name__ == "__main__":
main18()
main4()
1 change: 1 addition & 0 deletions tensorgrad/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
_make_distinct, # noqa: F401
function, # noqa: F401
)
from .extras.expectation import Expectation # noqa: F401
from .functions import frobenius2, kronecker, diag, sum, log, pow, trace # noqa: F401
from sympy import symbols # noqa: F401

0 comments on commit a6fe1b9

Please # to comment.