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