Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete copy and move operations of some Matrix classes (#2103)
Summary: Pull Request resolved: #2103 For those matrices managing their buffers, the copy and move operations should be deleted to avoid default versions generated by the compiler. Another solution is to manage the buffer ownership in user defined versions, but deleting them is simpler given that no memory corruption has been found since it can be inferred that they are not used. Another solution is use std::share_ptr to manager buffers. However, it will incur some atomic operations on the reference counter, which is not desirable . Pull Request resolved: #2100 Reviewed By: spcyppt Differential Revision: D50822752 Pulled By: q10 fbshipit-source-id: 87c0a495c146c23e8f5a284ac87357990578d8d8
- Loading branch information