Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 25 additions & 55 deletions src/lib/common.cc
Original file line number Diff line number Diff line change
@@ -1,57 +1,27 @@






























namespace {
// Code to turn parameters to functions on streams into strings
// Will be VLOG'ed. We need overloads instead of
// e.g. BatchDescriptorToVlogString(), as the code that calls these
// function does not know what the type of the parameters is.

string ToVlogStrin(const dnn::BatchDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogStrin(const dnn::FilterDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogString(const magicalMovieClassifier::FilterDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogStrin(const dnn::PoolingDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogStrin(const dnn::ConvolutionDescriptor &descriptor) {
return descriptor.ToShortString();
}
namespace Converter {
// Code to turn parameters to functions on streams into strings
// Will be VLOG'ed. We need overloads instead of
// e.g. BatchDescriptorToVlogString(), as the code that calls these
// function does not know what the type of the parameters is.

string ToVlogStrin(const dnn::BatchDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogStrin(const dnn::FilterDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogString(const magicalMovieClassifier::FilterDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogStrin(const dnn::PoolingDescriptor &descriptor) {
return descriptor.ToShortString();
}

string ToVlogStrin(const dnn::ConvolutionDescriptor &descriptor) {
return descriptor.ToShortString();
}

}