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

Method GetResourceInput

tensorflow/compiler/tf2xla/xla_op_kernel.cc:526–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526Status XlaOpKernelContext::GetResourceInput(int index, XlaResource** resource) {
527 const XlaExpression* expression =
528 CastExpressionFromTensor(context_->input(index));
529 TF_RET_CHECK(expression->resource() != nullptr);
530 *resource = expression->resource();
531 return Status::OK();
532}
533
534namespace {
535

Callers 15

CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80
CompileMethod · 0.80

Calls 3

CastExpressionFromTensorFunction · 0.85
inputMethod · 0.45
resourceMethod · 0.45

Tested by

no test coverage detected