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

Function MakeOutput

tensorflow/compiler/xrt/xrt_util.cc:132–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132Status MakeOutput(const RefPtr<XRTTupleAllocation>& output, int64 index,
133 RefPtr<XRTTupleAllocation>* result) {
134 if (index == 0) {
135 *result = output;
136 } else {
137 XRTTupleAllocation* tuple;
138 TF_RETURN_IF_ERROR(
139 XRTTupleAllocation::MakeSubBuffer(output.get(), {index - 1}, &tuple,
140 /*alias_parent_allocation=*/true));
141 result->reset(tuple);
142 }
143 return Status::OK();
144}
145
146Status PopulateOpWorkingSet(xla::Backend* backend,
147 const xrt::XRTChainedExecuteOp& op,

Callers 1

ExecuteChainedFunction · 0.85

Calls 2

getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected