string -> Tensor
| 29 | |
| 30 | // string -> Tensor<string> |
| 31 | Tensor V(const string& content) { |
| 32 | Tensor tensor(DT_STRING, TensorShape({})); |
| 33 | tensor.scalar<tstring>()() = content; |
| 34 | return tensor; |
| 35 | } |
| 36 | |
| 37 | // Tensor<string> -> string |
| 38 | string V(const Tensor& tensor) { |
no test coverage detected