Skip to content

[Placeholder] Remove the ability to save into variables. #1797

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

Merged
merged 3 commits into from
Oct 5, 2018

Conversation

nadavrot
Copy link
Contributor

@nadavrot nadavrot commented Oct 4, 2018

Description:

  1. [Placeholder] Remove the support for variables from SaveNode.

  2. [Placeholder] Remove the ability to create SaveNode that saves into a variable.

    This commit removes the SaveNode constructor that saves into a variable.
    It also fixes the lowering method and makes it create a placeholder for
    the GSUM storage. It also renames createSaveNodePH into createSaveNode.

    At the moment we need to initialize the context after lowering because
    lowering creates new placeholders. When we migrate the context into the
    execution method we'll be able to move the initialization outside of the
    compilation code.

Testing: Ran ninja check and run.sh
Documentation: None.

#1334

Copy link
Contributor

@rdzhabarov rdzhabarov left a comment

Choose a reason for hiding this comment

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

Great!

… variable.

This commit removes the SaveNode constructor that saves into a variable.
It also fixes the lowering method and makes it create a placeholder for
the GSUM storage.  It also renames createSaveNodePH into createSaveNode.

At the moment we need to initialize the context after lowering because
lowering creates new placeholders. When we migrate the context into the
execution method we'll be able to move the initialization outside of the
compilation code.
@nadavrot nadavrot force-pushed the delete_save_variable branch from ebc2baf to be9ffd9 Compare October 4, 2018 22:10
optimizeFunction(mode, F);
// Make sure that the context has backing tensors for all placeholders.
ctx.allocate(M_.getPlaceholders());

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@rdzhabarov
Copy link
Contributor

rdzhabarov commented Oct 5, 2018

@nadavrot the check for "up to date" branch is gone, so it should be good to merge after squashing.

edit: No squashing is required.

@nadavrot nadavrot merged commit 6d3209b into pytorch:master Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants