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

Method input_alloc_attr

tensorflow/core/framework/op_kernel.h:1104–1112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1102 }
1103
1104 AllocatorAttributes input_alloc_attr(int index) const {
1105 if (params_->input_alloc_attrs == nullptr) {
1106 return AllocatorAttributes();
1107 } else {
1108 DCHECK_GE(index, 0);
1109 DCHECK_LT(index, params_->input_alloc_attrs->size());
1110 return (*params_->input_alloc_attrs)[index];
1111 }
1112 }
1113
1114 AllocatorAttributes output_alloc_attr(int index) const {
1115 return params_->output_attr_array[index];

Callers 15

ComputeAsyncMethod · 0.80
ComputeAsyncMethod · 0.80
RunMethod · 0.80
SubContextMethod · 0.80
RunMethod · 0.80
RunTreeMethod · 0.80
ComputeAsyncMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
ComputeMethod · 0.80
SendStringMethod · 0.80

Calls 2

AllocatorAttributesClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected