• Amy Zhuang's avatar
    Reuse memory for CPU backend. (#2238) · b277627a
    Amy Zhuang authored
    * Reuse memory for CPU backend.
    
    * Use NGRAPH_REUSE_MEMORY to enable memory reuse.
    
    * Add a test.
    
    * Move make_function to test_tools.cpp.
    
    * Add more comments.
    
    * Address PR Feedback: add a method to CPU backend.
    
    * *Add a member to CPUOpAnnotations to remove redundant code.
    
    *Overload compile function for CPU backend.
    
    * Move make_function out of test_tools.
    
    * Address PR Feedback.
    
    * Use modified liveness analysis in CPUMemoryAssignment pass.
    
    * Use lambda expression.
    
    * Fix style error.
    
    * Check if any user of the tensor has destructive io when building tensor alias map.
    
    * Fix a bug.
    
    * Check if tensor has multiple users.
    
    * Allow tensor alias for destructive oi node.
    
    * Update multiple_users_tensor set along the chain of in place ops.
    
    * No tensor alias if input is parameter or constant.
    
    * Use buffer sets in cpu memory assignment,
    tensors sharing the same memory buffer are put into the same set.
    
    * Add more checks and do not combine sets when allowing destructive oi.
    
    * Style fix.
    
    * Do no allow destructive oi if the input tensor uses function input memory.
    
    Update set label.
    
    * Add unit tests.
    
    * Style fix.
    
    * Get the correct size for memcpy when the input is padded.
    
    * Style fix.
    
    * Address PR feedback.
    
    * Address PR feedback.
    
    * Move make_function in cpu_test after #if 0 and before the disabled test.
    
    * Add utility functions.
    
    Use iterator.
    
    Rename variables.
    
    * Add pass attributes and move cpu memory assignment to common passes (#2504)
    b277627a
Name
Last commit
Last update
.ci Loading commit data...
cmake Loading commit data...
contrib/docker Loading commit data...
doc Loading commit data...
licenses Loading commit data...
maint Loading commit data...
python Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
ABOUT.md Loading commit data...
CMakeLists.txt Loading commit data...
CODEOWNERS Loading commit data...
CONTRIB.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
VERSION.in Loading commit data...
changes.md Loading commit data...
ecosystem-overview.md Loading commit data...