| 788 | } |
| 789 | |
| 790 | void TFE_OpSetAttrBoolList(TFE_Op* op, const char* attr_name, |
| 791 | const unsigned char* values, int num_values) { |
| 792 | std::unique_ptr<bool[]> b(new bool[num_values]); |
| 793 | for (int i = 0; i < num_values; ++i) { |
| 794 | b[i] = values[i]; |
| 795 | } |
| 796 | op->operation.MutableAttrs()->Set( |
| 797 | attr_name, tensorflow::gtl::ArraySlice<const bool>(b.get(), num_values)); |
| 798 | } |
| 799 | |
| 800 | void TFE_OpSetAttrShapeList(TFE_Op* op, const char* attr_name, |
| 801 | const int64_t** dims, const int* num_dims, |
no test coverage detected