Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Removal of the signature attribute#533

Merged
chaserileyroberts merged 3 commits intomasterfrom
signature_removal
Apr 14, 2020
Merged

Removal of the signature attribute#533
chaserileyroberts merged 3 commits intomasterfrom
signature_removal

Conversation

@chaserileyroberts
Copy link
Contributor

@chaserileyroberts chaserileyroberts commented Apr 14, 2020

Fixes #530 fixes #446

@chaserileyroberts
Copy link
Contributor Author

I have confirmed this fixes the graphviz issue.

import tensornetwork as tn
import numpy as np

a = tn.Node(np.ones((2, 2)), name="A")
b = tn.Node(np.ones((2, 2)), name="B")
a[0] ^ b[0]

tn.to_graphviz([a, b])

image

Copy link
Contributor

@mganahl mganahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Do we still need the Edge.signature?

@chaserileyroberts
Copy link
Contributor Author

Nope. And I believe I removed that already?

@chaserileyroberts chaserileyroberts merged commit b66151f into master Apr 14, 2020
@mganahl
Copy link
Contributor

mganahl commented Apr 15, 2020

you're right, was already gone

@chaserileyroberts chaserileyroberts deleted the signature_removal branch April 15, 2020 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

signature of node is always default as -1 Fix graphviz

3 participants