Skip to content
This repository was 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
mannatsingh wants to merge 7 commits into
facebookresearch:masterfrom
mannatsingh:classy_model_overview
Closed

Add a tutorial which gives an overview of classy models#485
mannatsingh wants to merge 7 commits into
facebookresearch:masterfrom
mannatsingh:classy_model_overview

Conversation

@mannatsingh

Copy link
Copy Markdown
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-botfacebook-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

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

Copy link
Copy Markdown
Contributor

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-botfacebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

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-botfacebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@mannatsingh merged this pull request in 4139a5c.

@mannatsingh
mannatsingh deleted the classy_model_overview branch June 29, 2020 21:31
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA SignedThis 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

@mannatsingh@facebook-github-bot