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

Method GetArg

tensorflow/core/framework/function.cc:1022–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020}
1021
1022Status FunctionCallFrame::GetArg(int index, Tensor* val) const {
1023 if (index < 0 || static_cast<size_t>(index) >= args_.size()) {
1024 return errors::InvalidArgument("GetArg ", index, " is not within [0, ",
1025 args_.size(), ")");
1026 }
1027 *val = args_[index];
1028 return Status::OK();
1029}
1030
1031Status FunctionCallFrame::SetRetval(int index, const Tensor& val) {
1032 if (index < 0 || static_cast<size_t>(index) >= rets_.size()) {

Callers 2

CompileMethod · 0.45
TESTFunction · 0.45

Calls 2

InvalidArgumentFunction · 0.85
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.36