Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'GraphTensor' object has no attribute 'values' #1

Closed
yarri-oss opened this issue Nov 5, 2021 · 2 comments
Closed
Assignees
Labels
question Further information is requested

Comments

@yarri-oss
Copy link

It looks like this example file uses an older syntax for GraphTensor and might need to be updated:

Specifically this line contains the attribute 'values'

def transform_fn(gt: tfgnn.GraphTensor) -> tfgnn.GraphTensor:
  values = gt.values
  # Remove string fields.
  del values.context["seed_id"]
@yarri-oss yarri-oss added the question Further information is requested label Nov 5, 2021
@janpfeifer
Copy link
Contributor

Indeed the examples directory still has the old syntax, and is also partly missing.

We are finishing to update some parts of the library and graph sampler, and then we will work on examples. I'll leave the issue open for now.

copybara-service bot pushed a commit that referenced this issue Nov 26, 2022
This is work-in-progress

PiperOrigin-RevId: 490568638
copybara-service bot pushed a commit that referenced this issue Nov 26, 2022
This is work-in-progress

PiperOrigin-RevId: 491067724
copybara-service bot pushed a commit that referenced this issue Mar 27, 2023
as open-sourced.

This fixes issue #1

PiperOrigin-RevId: 519131081
copybara-service bot pushed a commit that referenced this issue Mar 27, 2023
as open-sourced.

This fixes issue #1

PiperOrigin-RevId: 519131081
copybara-service bot pushed a commit that referenced this issue Mar 27, 2023
as open-sourced.

This fixes issue #1

PiperOrigin-RevId: 519715853
@arnoegw
Copy link
Collaborator

arnoegw commented Mar 27, 2023

TF-GNN has a number of good Colab tutorials for a while now.

The reported file examples/citeseer/graph_tensor_example.py indeed is broken as @yarri-oss and @janpfeifer described, so I have deleted it with PR ee912b2.

@arnoegw arnoegw closed this as completed Mar 27, 2023
copybara-service bot pushed a commit that referenced this issue Aug 6, 2023
PiperOrigin-RevId: 554228876
copybara-service bot pushed a commit that referenced this issue Aug 6, 2023
PiperOrigin-RevId: 554245683
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants