| 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]; |
no test coverage detected