-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add graph function to list DataPipes from graph
- Loading branch information
Showing
3 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) Meta Platforms, Inc. and affiliates. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the BSD-style license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
|
||
from torch.utils.data.graph import DataPipe, DataPipeGraph, traverse_dps | ||
|
||
from torchdata.dataloader2.graph.utils import find_dps, list_dps, remove_dp, replace_dp | ||
|
||
|
||
__all__ = [ | ||
"DataPipe", | ||
"DataPipeGraph", | ||
"find_dps", | ||
"list_dps", | ||
"remove_dp", | ||
"replace_dp", | ||
"traverse_dps", | ||
] | ||
|
||
|
||
assert __all__ == sorted(__all__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters