Skip to content

Commit

Permalink
Missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasahle committed Jan 13, 2025
1 parent 49b70cd commit 0607f65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 82 deletions.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies = [
"torch",
"nbval",
"pytest",
"einops",
"pdf2image",
"sympy"
]
Expand All @@ -25,5 +26,6 @@ line-length = 110
indent-width = 4

[tool.pytest.ini_options]
addopts = "-s"
addopts = "-s --cov=tensorgrad --cov-report=term-missing --cov-report=xml"
# addopts = "--nbval"

81 changes: 0 additions & 81 deletions tensorgrad/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,87 +7,6 @@
from tensorgrad import Copy, Ones, Tensor, Zero, Variable
import networkx as nx

# Product(
# [
# Product(
# [
# Product(
# [
# Function("max", {}, Variable("X", i, j)),
# Product([Copy(i, "i")]),
# ]
# ),
# Copy(j, "j"),
# Copy(i, "i"),
# ]
# ),
# Function(
# "pow(k=-1)",
# {},
# Product(
# [
# Copy(j),
# Copy(i),
# ]
# ),
# ),
# ]
# )

# Product(
# [
# Product(
# [
# Product(
# [
# Function(FunctionSignature(max, set(), [{"i"}]), Variable("X", i, j), {}),
# Product([Copy(i, "i")]),
# ]
# ),
# Copy(j, "j"),
# Copy(i, "i"),
# ]
# ),
# Function(
# FunctionSignature(pow(k=-1), set(), [set()]),
# Product(
# [
# Copy(j),
# Copy(i),
# ]
# ),
# {},
# ),
# ]
# )

# Product(
# [
# Product(
# [
# Product(
# [
# Function(FunctionSignature(max, set(), [{"i"}]), Variable("X", i, j), {}),
# Product([Copy(i, "i")]),
# ]
# ),
# Copy(j, "j"),
# Copy(i, "i"),
# ]
# ),
# Function(
# FunctionSignature(pow(k=-1), set(), [set()]),
# Product(
# [
# Copy(j),
# Copy(i),
# ]
# ),
# {},
# ),
# ]
# )


def rand_values(variables: Iterable[Variable], shape: Dict[Symbol, int] = {}):
values = {}
Expand Down

0 comments on commit 0607f65

Please # to comment.