Skip to content

Commit

Permalink
Fixed a doc error
Browse files Browse the repository at this point in the history
  • Loading branch information
nvidianz committed Jan 23, 2025
1 parent a3cc343 commit 260104b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/advanced/streaming/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Currently, following implementations are available,
To use ContainerRetriever, the container must be given a name and added on the sending site,

```
ContainerRetriever.add("model", model_dict)
ContainerRetriever.add_container("model", model_dict)
```

## Example Jobs
Expand Down
2 changes: 2 additions & 0 deletions nvflare/app_common/streamers/container_streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def consume(
if isinstance(self.container, dict):
key, value = entry
self.container[key] = value
elif isinstance(self.container, set):
self.container.add(entry)
else:
self.container.append(entry)
except Exception as ex:
Expand Down

0 comments on commit 260104b

Please sign in to comment.