op_version_proto.cc 3.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

#include "paddle/fluid/framework/op_version_proto.h"
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108

namespace paddle {
namespace framework {
namespace compatible {
namespace pb {
const std::unordered_map<std::string, uint32_t>& GetLegacyOpVersions() {
  static std::unordered_map<std::string, uint32_t> op_versions = {
      {"not_equal", 1},
      {"fake_channel_wise_dequantize_max_abs", 2},
      {"yolo_box", 1},
      {"data_norm", 1},
      {"cumsum", 1},
      {"fake_channel_wise_quantize_abs_max", 1},
      {"greater_equal", 1},
      {"fill_constant", 2},
      {"conv_transpose", 1},
      {"fusion_gru", 1},
      {"flip", 1},
      {"elementwise_sub", 1},
      {"dequantize", 1},
      {"grid_sampler", 1},
      {"expand_as_v2", 1},
      {"linspace", 1},
      {"moving_average_abs_max_scale", 2},
      {"p_norm", 1},
      {"instance_norm", 1},
      {"lookup_table_v2", 1},
      {"seed", 1},
      {"softmax_with_cross_entropy", 1},
      {"rank_attention", 1},
      {"cudnn_lstm", 1},
      {"clip", 1},
      {"requantize", 1},
      {"for_pybind_test__", 4},
      {"print", 1},
      {"transfer_layout", 1},
      {"arg_min", 1},
      {"roll", 2},
      {"roi_pool", 2},
      {"conv2d_transpose", 2},
      {"roi_align", 3},
      {"softplus", 1},
      {"momentum", 1},
      {"trace", 1},
      {"matmul", 1},
      {"lookup_table", 1},
      {"lstsq", 1},
      {"conv3d_transpose", 1},
      {"depthwise_conv2d_transpose", 1},
      {"conv2d", 1},
      {"lamb", 1},
      {"send_and_recv", 1},
      {"gaussian_random", 1},
      {"unique_consecutive", 1},
      {"conv3d", 1},
      {"pixel_shuffle", 1},
      {"collect_fpn_proposals", 1},
      {"coalesce_tensor", 2},
      {"arg_max", 1},
      {"allclose", 2},
      {"matrix_nms", 1},
      {"less_than", 1},
      {"affine_grid", 1},
      {"hard_shrink", 1},
      {"set_value", 3},
      {"mish", 1},
      {"quantize", 2},
      {"distribute_fpn_proposals", 2},
      {"adam", 4},
      {"elementwise_pow", 1},
      {"elementwise_mul", 1},
      {"elementwise_mod", 1},
      {"auc", 1},
      {"elementwise_min", 1},
      {"elementwise_max", 1},
      {"gather", 1},
      {"elementwise_div", 1},
      {"elementwise_add", 1},
      {"leaky_relu", 1},
      {"generate_proposal_labels", 2},
      {"elementwise_floordiv", 1},
      {"less_equal", 1},
      {"generate_proposals", 2},
      {"depthwise_conv2d", 1},
      {"greater_than", 1},
      {"generate_proposals_v2", 1},
      {"equal", 1}};
  return op_versions;
}
}  // namespace pb
}  // namespace compatible
}  // namespace framework
}  // namespace paddle