Skip to content

Commit

Permalink
allow print detail in list (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
TennyZhuang authored and tqchen committed Aug 21, 2017
1 parent 34900ad commit 83483fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autodiff.py
Expand Up @@ -40,6 +40,8 @@ def __str__(self):
"""Allow print to display node name."""
return self.name

__repr__ = __str__

def Variable(name):
"""User defined variables in an expression.
e.g. x = Variable(name = "x")
Expand Down

0 comments on commit 83483fe

Please sign in to comment.