Code to turn parameters to functions on stream into strings that will be VLOG'ed. We need overloads, instead of e.g. BatchDescriptorToVlogString(), as the code that calls these functions does not know what the type of the parameter is.
| 36 | // e.g. BatchDescriptorToVlogString(), as the code that calls these |
| 37 | // functions does not know what the type of the parameter is. |
| 38 | string ToVlogString(const dnn::BatchDescriptor &descriptor) { |
| 39 | return descriptor.ToShortString(); |
| 40 | } |
| 41 | |
| 42 | string ToVlogString(const dnn::FilterDescriptor &descriptor) { |
| 43 | return descriptor.ToShortString(); |
no test coverage detected