op_compat_info.cc.j2 368 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "paddle/fluid/translator/op_compat_info.h"

namespace paddle {
namespace translator {
    
OpNameNormalizer::OpNameNormalizer() {
    op_name_mappings = {
        {% for legacy_name, normalized_name in op_name_paris.items() %}
        { "{{legacy_name}}", "{{normalized_name}}" },
        {% endfor %}
    };
}

} // namespace translator
}// namespace paddle