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

Method InputList

tensorflow/compiler/tf2xla/xla_op_kernel.cc:369–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369Status XlaOpKernelContext::InputList(absl::string_view name,
370 std::vector<xla::XlaOp>* handles,
371 std::vector<TensorShape>* shapes) {
372 OpInputList inputs;
373 TF_RETURN_IF_ERROR(context_->input_list(name, &inputs));
374 handles->clear();
375 shapes->clear();
376 for (const Tensor& input : inputs) {
377 handles->push_back(CastExpressionFromTensor(input)->AsXlaOp(builder()));
378 shapes->push_back(input.shape());
379 }
380 return Status::OK();
381}
382
383Status XlaOpKernelContext::ConstantInputList(
384 absl::string_view name, std::vector<xla::Literal>* outputs) {

Callers 3

CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45

Calls 6

CastExpressionFromTensorFunction · 0.85
AsXlaOpMethod · 0.80
input_listMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected