MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / data

Method data

tensorflow/compiler/xla/array.h:397–402  ·  view source on GitHub ↗

Low-level accessor for stuff like memcmp, handle with care. Returns pointer to the underlying storage of the array (similarly to std::vector::data()).

Source from the content-addressed store, hash-verified

395 // Low-level accessor for stuff like memcmp, handle with care. Returns pointer
396 // to the underlying storage of the array (similarly to std::vector::data()).
397 T* data() const {
398 // TODO(tberghammer): Get rid of the const_cast. Currently it is needed
399 // because the Eigen backend needs a non-const pointers even for reading
400 // from the array.
401 return const_cast<Array*>(this)->values_.get();
402 }
403
404 // Returns the size of the dimension at the given index.
405 int64 dim(int64 n) const {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected