| 830 | } |
| 831 | |
| 832 | void TFE_OpSetAttrFunctionList(TFE_Op* op, const char* attr_name, |
| 833 | const TFE_Op** value, int num_values) { |
| 834 | std::unique_ptr<tensorflow::NameAttrList[]> funcs( |
| 835 | new tensorflow::NameAttrList[num_values]); |
| 836 | for (int i = 0; i < num_values; i++) { |
| 837 | funcs[i].set_name(value[i]->operation.Name()); |
| 838 | value[i]->operation.Attrs().FillAttrValueMap(funcs[i].mutable_attr()); |
| 839 | } |
| 840 | op->operation.MutableAttrs()->Set( |
| 841 | attr_name, tensorflow::gtl::ArraySlice<const tensorflow::NameAttrList>( |
| 842 | funcs.get(), num_values)); |
| 843 | } |
| 844 | |
| 845 | TF_CAPI_EXPORT extern int TFE_OpGetInputLength(TFE_Op* op, |
| 846 | const char* input_name, |
no test coverage detected