MCPcopy Create free account
hub / github.com/apache/singa / Contiguous

Function Contiguous

src/core/tensor/tensor.cc:1769–1772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1767}
1768
1769Tensor Contiguous(const Tensor &in) {
1770 Tensor out(in);
1771 return out.Contiguous();
1772}
1773
1774// if tensor is not transposed yet, we change the shape and generate new stride
1775// if tensor is already transposed, we reallocate the memory and generate stride

Callers 4

GpuRNNForwardInferenceFunction · 0.85
GpuRNNForwardTrainingFunction · 0.85
GpuRNNBackwardxFunction · 0.85
GpuRNNBackwardWFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected