Exemplo n.º 1
0
void DescenderPath::printScore() const
{
    if (hasTop())
        computeHalfScore(true,true);
    
    computeHalfScore(false,true);
    double lenRatioBias = computeLenRatioBias();
    printf("lenRatioBis=%f,\ttotal score=%f\n",lenRatioBias,holdScore);
}
Exemplo n.º 2
0
std::string SoftMaxLayer::toString() {
    std::stringstream ss;

    ss << "layer {\n";
    ss << "  name: \"";
    ss << getName() << "\"\n";
    ss << "  type: \"";
    ss << getType() << "\"\n";

    if ( hasBottom() ) {
        ss << "  bottom: \"";
        ss << getBottom() << "\"\n";
    }

    if ( hasTop() ) {
        ss << "  top: \"";
        ss << getTop() << "\"\n";
    }

    ss << "}" << std::endl;

    return ss.str();
}