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

Function IntSequenceToVector

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

Source from the content-addressed store, hash-verified

279}
280
281std::vector<int64> IntSequenceToVector(const py::object& sequence) {
282 std::vector<int64> output;
283 for (auto item : sequence) {
284 output.push_back(item.cast<int64>());
285 }
286 return output;
287}
288
289absl::optional<CastToArrayResult> CastToArray(py::handle h) {
290 py::array array = py::array::ensure(

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected