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

Function IntSpanToTuple

tensorflow/compiler/xla/python/types.cc:273–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273py::tuple IntSpanToTuple(absl::Span<int64 const> xs) {
274 py::tuple out(xs.size());
275 for (int i = 0; i < xs.size(); ++i) {
276 out[i] = py::int_(xs[i]);
277 }
278 return out;
279}
280
281std::vector<int64> IntSequenceToVector(const py::object& sequence) {
282 std::vector<int64> output;

Callers 2

PYBIND11_MODULEFunction · 0.85

Calls 2

int_Function · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected