| 756 | } |
| 757 | |
| 758 | void TFE_OpSetAttrStringList(TFE_Op* op, const char* attr_name, |
| 759 | const void* const* values, const size_t* lengths, |
| 760 | int num_values) { |
| 761 | std::vector<tensorflow::StringPiece> v(num_values); |
| 762 | for (int i = 0; i < num_values; ++i) { |
| 763 | v[i] = tensorflow::StringPiece(static_cast<const char*>(values[i]), |
| 764 | lengths[i]); |
| 765 | } |
| 766 | op->operation.MutableAttrs()->Set(attr_name, v); |
| 767 | } |
| 768 | |
| 769 | void TFE_OpSetAttrFloatList(TFE_Op* op, const char* attr_name, |
| 770 | const float* values, int num_values) { |
no test coverage detected