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

Function AsInt64

tensorflow/core/ops/array_ops.cc:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template <typename T>
55std::vector<int64> AsInt64(const Tensor* tensor, int64 num_elements) {
56 std::vector<int64> ret(num_elements);
57 auto data = tensor->vec<T>();
58 for (int64 i = 0; i < num_elements; ++i) {
59 ret[i] = data(i);
60 }
61 return ret;
62}
63
64template <typename T>
65Status PadKnown(InferenceContext* c, ShapeHandle input,

Callers

nothing calls this directly

Calls 1

dataFunction · 0.50

Tested by

no test coverage detected