MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Swap

Method Swap

oneflow/core/common/tensor_buffer.cpp:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void TensorBufferImpl::Swap(TensorBufferImpl* other) {
114 std::swap(buffer_, other->buffer_);
115 std::swap(buffer_size_, other->buffer_size_);
116 std::swap(shape_, other->shape_);
117 std::swap(data_type_, other->data_type_);
118}
119
120} // namespace detail
121

Callers 4

ParseMethod · 0.80
ParseMethod · 0.80
UpdateJobMethod · 0.80
ApplyJobPassesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected