MCPcopy Create free account
hub / github.com/apache/tvm-ffi / back

Method back

include/tvm/ffi/container/array.h:412–418  ·  view source on GitHub ↗

! \return The last element of the array */

Source from the content-addressed store, hash-verified

410
411 /*! \return The last element of the array */
412 T back() const {
413 ArrayObj* p = GetArrayObj();
414 if (p == nullptr) {
415 TVM_FFI_THROW(IndexError) << "cannot index a null array";
416 }
417 return details::AnyUnsafe::CopyFromAnyViewAfterCheck<T>(p->back());
418 }
419
420 public:
421 // mutation in std::vector, implements copy-on-write

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected