Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Add a tutorial which gives an overview of classy models #485

Closed

Conversation

mannatsingh
Copy link
Contributor

No description provided.

Summary:
When setting heads, we do the following currently -
```
model.set_heads({"block3-2": {head.unique_id: head}})
```
This is a redundant structure, since the unique_id is already available in `head`. I was writing a tutorial and I want to show a cleaner API there -
```
model.set_heads({"block3-2": [head]})
```

Differential Revision: D21096621

fbshipit-source-id: 65c1eb5caacf2970d60eb050061aeadf69db94d9
Summary:
Pull Request resolved: facebookresearch#484

When setting heads, we do the following currently -
```
model.set_heads({"block3-2": {head.unique_id: head}})
```
This is a redundant structure, since the unique_id is already available in `head`. I was writing a tutorial and I want to show a cleaner API there -
```
model.set_heads({"block3-2": [head]})
```

Differential Revision: D21096621

fbshipit-source-id: 4dfc87e172390c43e9cd7fce98ad987099542ca2
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 18, 2020
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mannatsingh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mannatsingh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@mannatsingh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mannatsingh merged this pull request in 4139a5c.

@mannatsingh mannatsingh deleted the classy_model_overview branch June 29, 2020 21:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants