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

Function IsAllContiguous

oneflow/core/functional/tensor_processor.cpp:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static bool IsAllContiguous(const TensorTuple& tensors) {
146 for (const auto& t : tensors) {
147 if (t && !t->is_contiguous()) { return false; }
148 }
149 return true;
150}
151
152Maybe<void> TensorLayoutProcessor::Apply() {
153 if (LazyMode::is_enabled()) { return Maybe<void>::Ok(); }

Callers 1

ApplyMethod · 0.85

Calls 1

is_contiguousMethod · 0.45

Tested by

no test coverage detected