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

force infer storage on backward pass (#1) #113

Merged
merged 2 commits into from
May 15, 2017

Conversation

eric-haibin-lin
Copy link
Member

This PR allows inferstoragetype in backward pass. For type and shape, we can skip backward inter pass because it's always identical, but it's not the case for storage type (e.g. For sparse embedding operator, we'll output RowSparse weight gradients).

* force infer storage type for backward pass

* change none value for storage type to 0(kUndefinedStorage)

* Modify default value for storage type
@eric-haibin-lin
Copy link
Member Author

eric-haibin-lin commented May 3, 2017

@piiswrong merging this will help me run some CI tests on PR apache/mxnet#5800

@piiswrong
Copy link
Member

test failed

@eric-haibin-lin
Copy link
Member Author

@piiswrong updated unit test

@piiswrong piiswrong merged commit 7c603eb into dmlc:sparse May 15, 2017
eric-haibin-lin added a commit to eric-haibin-lin/nnvm that referenced this pull request Jun 7, 2017
* force infer storage on backward pass (#1)

* force infer storage type for backward pass

* change none value for storage type to 0(kUndefinedStorage)

* Modify default value for storage type

* update unit test for infer storage
piiswrong pushed a commit that referenced this pull request Jun 7, 2017
* [WIP] Infer Storage Type pass for sparse tensors (#110)

* Add inferchunk pass

* Fix default type for infet chunk

* Add test for default chunk type

* disable mem sharing for sparse storage. global name replacement

* check dispatch_storage_type attr before retrieve it

* fix typo

* Add doc

* Add kDynamic Storage

* force infer storage on backward pass (#1) (#113)

* force infer storage on backward pass (#1)

* force infer storage type for backward pass

* change none value for storage type to 0(kUndefinedStorage)

* Modify default value for storage type

* update unit test for infer storage

* fix windows compilation error (#115)

* remove unused logging
abergeron pushed a commit to abergeron/nnvm that referenced this pull request May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants