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

walkthrough template to fuse2 style #99

Merged
merged 7 commits into from
Jun 12, 2022
Merged

Conversation

mosheraboh
Copy link
Collaborator

No description provided.

@mosheraboh mosheraboh added the documentation Improvements or additions to documentation label Jun 9, 2022
@mosheraboh mosheraboh linked an issue Jun 9, 2022 that may be closed by this pull request
# Represents a single sample and contains all relevant information about the sample.
# No specific structure of this dictionary is required, but a useful pattern is to split it into sections (keys that define a "namespace" ): such as "data", "model", etc.
# NDict (fuse/utils/ndict.py) class is used instead of python standard dictionary in order to allow easy "." separated access. For example:
# `sample_dict[“data.input.img”]` is the equivalent of `sample_dict["data"]["input"]["img"]`
Copy link
Collaborator

Choose a reason for hiding this comment

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

is sample_dict also an NDict ? would "sample_dict.data.input.img" also work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, sample_dict is NDict.
So it means that both sample_dict[“data.input.img”] and sample_dict["data"]["input"]["img"] are supported.
(Not sample_dict.data.input.img)

@mosheraboh mosheraboh merged commit 35dbeee into fuse2 Jun 12, 2022
@mosheraboh mosheraboh deleted the walkthrough_template branch June 12, 2022 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

walkthrough_template.py is out of date
2 participants