MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / operator-

Method operator-

include/cutlass/tensor_view.h:260–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 /// Returns a TensorRef offset by a given amount
259 CUTLASS_HOST_DEVICE
260 TensorView operator-(
261 TensorCoord const& b ///< offset in the logical coordinate space of the tensor
262 ) const {
263
264 TensorRef result(*this);
265 result.add_pointer_offset(-this->offset(b));
266 return result;
267 }
268
269 /// Returns a TensorRef offset by a given amount
270 CUTLASS_HOST_DEVICE

Callers

nothing calls this directly

Calls 2

add_pointer_offsetMethod · 0.45
offsetMethod · 0.45

Tested by

no test coverage detected