Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625785056
  • Loading branch information
phanein authored and tensorflower-gardener committed Apr 17, 2024
1 parent 4749d94 commit f93fc98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tensorflow_gnn/sampler/sampling_spec_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
```python
proto = (SamplingSpecBuilder(schema)
.seed('author').sample('writes', 10).sample('cited_by', 5)
.seed('author').sample('writes', 10).sample(5, 'cited_by')
.build())
```
Expand All @@ -73,15 +73,15 @@
```python
# Store builder at level of "author written papers":
builder = tfgnn.SamplingSpecBuilder(schema).seed('author').sample('writes', 10)
path1 = builder.sample('cited_by', 5)
path2 = builder.sample('written_by', 3).sample('writes')
builder = tfgnn.SamplingSpecBuilder(schema).seed('author').sample(10, 'writes')
path1 = builder.sample(5, 'cited_by')
path2 = builder.sample(3, 'written_by').sample('writes')
proto = (tfgnn.SamplingSpecBuilder.Join([path1, path2]).sample('cited_by', 10)
proto = (tfgnn.SamplingSpecBuilder.join([path1, path2]).sample(10, 'cited_by')
.build())
# The above `Join()` can be made less verbose with:
proto = path1.Join([path2]).sample('cited_by', 10).build()
proto = path1.Join([path2]).sample(10, 'cited_by').build()
```
This merges together the papers written by author, and written by co-authors,
Expand Down

0 comments on commit f93fc98

Please sign in to comment.