string -> Tensor
| 85 | |
| 86 | // string -> Tensor<string> |
| 87 | Tensor V(const string& content) { |
| 88 | Tensor tensor(DT_STRING, TensorShape({})); |
| 89 | tensor.scalar<tstring>()() = content; |
| 90 | return tensor; |
| 91 | } |
| 92 | |
| 93 | // Tensor<string> -> string |
| 94 | string V(const Tensor& tensor) { |
no test coverage detected