| 803 | } |
| 804 | |
| 805 | const char* |
| 806 | TRITONTF_TensorString(TRITONTF_Tensor* tensor, size_t idx, size_t* length) |
| 807 | { |
| 808 | TensorImpl* t = reinterpret_cast<TensorImpl*>(tensor); |
| 809 | const std::string& str = t->String(idx); |
| 810 | *length = str.length(); |
| 811 | return str.c_str(); |
| 812 | } |
| 813 | |
| 814 | void |
| 815 | TRITONTF_TensorSetString( |