easy-cs-rec-custommodel 0.8.6__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of easy-cs-rec-custommodel might be problematic. Click here for more details.

Files changed (336) hide show
  1. easy_cs_rec_custommodel-0.8.6.dist-info/LICENSE +203 -0
  2. easy_cs_rec_custommodel-0.8.6.dist-info/METADATA +48 -0
  3. easy_cs_rec_custommodel-0.8.6.dist-info/RECORD +336 -0
  4. easy_cs_rec_custommodel-0.8.6.dist-info/WHEEL +6 -0
  5. easy_cs_rec_custommodel-0.8.6.dist-info/top_level.txt +2 -0
  6. easy_rec/__init__.py +114 -0
  7. easy_rec/python/__init__.py +0 -0
  8. easy_rec/python/builders/__init__.py +0 -0
  9. easy_rec/python/builders/hyperparams_builder.py +78 -0
  10. easy_rec/python/builders/loss_builder.py +333 -0
  11. easy_rec/python/builders/optimizer_builder.py +211 -0
  12. easy_rec/python/builders/strategy_builder.py +44 -0
  13. easy_rec/python/compat/__init__.py +0 -0
  14. easy_rec/python/compat/adam_s.py +245 -0
  15. easy_rec/python/compat/array_ops.py +229 -0
  16. easy_rec/python/compat/dynamic_variable.py +542 -0
  17. easy_rec/python/compat/early_stopping.py +653 -0
  18. easy_rec/python/compat/embedding_ops.py +162 -0
  19. easy_rec/python/compat/embedding_parallel_saver.py +316 -0
  20. easy_rec/python/compat/estimator_train.py +116 -0
  21. easy_rec/python/compat/exporter.py +473 -0
  22. easy_rec/python/compat/feature_column/__init__.py +0 -0
  23. easy_rec/python/compat/feature_column/feature_column.py +3675 -0
  24. easy_rec/python/compat/feature_column/feature_column_v2.py +5233 -0
  25. easy_rec/python/compat/feature_column/sequence_feature_column.py +648 -0
  26. easy_rec/python/compat/feature_column/utils.py +154 -0
  27. easy_rec/python/compat/layers.py +329 -0
  28. easy_rec/python/compat/ops.py +14 -0
  29. easy_rec/python/compat/optimizers.py +619 -0
  30. easy_rec/python/compat/queues.py +311 -0
  31. easy_rec/python/compat/regularizers.py +208 -0
  32. easy_rec/python/compat/sok_optimizer.py +440 -0
  33. easy_rec/python/compat/sync_replicas_optimizer.py +528 -0
  34. easy_rec/python/compat/weight_decay_optimizers.py +475 -0
  35. easy_rec/python/core/__init__.py +0 -0
  36. easy_rec/python/core/easyrec_metrics/__init__.py +24 -0
  37. easy_rec/python/core/easyrec_metrics/distribute_metrics_impl_pai.py +3702 -0
  38. easy_rec/python/core/easyrec_metrics/distribute_metrics_impl_tf.py +3768 -0
  39. easy_rec/python/core/learning_schedules.py +228 -0
  40. easy_rec/python/core/metrics.py +402 -0
  41. easy_rec/python/core/sampler.py +844 -0
  42. easy_rec/python/eval.py +102 -0
  43. easy_rec/python/export.py +150 -0
  44. easy_rec/python/feature_column/__init__.py +0 -0
  45. easy_rec/python/feature_column/feature_column.py +664 -0
  46. easy_rec/python/feature_column/feature_group.py +89 -0
  47. easy_rec/python/hpo/__init__.py +0 -0
  48. easy_rec/python/hpo/emr_hpo.py +140 -0
  49. easy_rec/python/hpo/generate_hpo_sql.py +71 -0
  50. easy_rec/python/hpo/pai_hpo.py +297 -0
  51. easy_rec/python/inference/__init__.py +0 -0
  52. easy_rec/python/inference/csv_predictor.py +189 -0
  53. easy_rec/python/inference/hive_parquet_predictor.py +200 -0
  54. easy_rec/python/inference/hive_predictor.py +166 -0
  55. easy_rec/python/inference/odps_predictor.py +70 -0
  56. easy_rec/python/inference/parquet_predictor.py +147 -0
  57. easy_rec/python/inference/parquet_predictor_v2.py +147 -0
  58. easy_rec/python/inference/predictor.py +621 -0
  59. easy_rec/python/inference/processor/__init__.py +0 -0
  60. easy_rec/python/inference/processor/test.py +170 -0
  61. easy_rec/python/inference/vector_retrieve.py +124 -0
  62. easy_rec/python/input/__init__.py +0 -0
  63. easy_rec/python/input/batch_tfrecord_input.py +117 -0
  64. easy_rec/python/input/criteo_binary_reader.py +259 -0
  65. easy_rec/python/input/criteo_input.py +107 -0
  66. easy_rec/python/input/csv_input.py +175 -0
  67. easy_rec/python/input/csv_input_ex.py +72 -0
  68. easy_rec/python/input/csv_input_v2.py +68 -0
  69. easy_rec/python/input/datahub_input.py +320 -0
  70. easy_rec/python/input/dummy_input.py +58 -0
  71. easy_rec/python/input/hive_input.py +123 -0
  72. easy_rec/python/input/hive_parquet_input.py +140 -0
  73. easy_rec/python/input/hive_rtp_input.py +174 -0
  74. easy_rec/python/input/input.py +1064 -0
  75. easy_rec/python/input/kafka_dataset.py +144 -0
  76. easy_rec/python/input/kafka_input.py +235 -0
  77. easy_rec/python/input/load_parquet.py +317 -0
  78. easy_rec/python/input/odps_input.py +101 -0
  79. easy_rec/python/input/odps_input_v2.py +110 -0
  80. easy_rec/python/input/odps_input_v3.py +132 -0
  81. easy_rec/python/input/odps_rtp_input.py +187 -0
  82. easy_rec/python/input/odps_rtp_input_v2.py +104 -0
  83. easy_rec/python/input/parquet_input.py +397 -0
  84. easy_rec/python/input/parquet_input_v2.py +180 -0
  85. easy_rec/python/input/parquet_input_v3.py +203 -0
  86. easy_rec/python/input/rtp_input.py +225 -0
  87. easy_rec/python/input/rtp_input_v2.py +145 -0
  88. easy_rec/python/input/tfrecord_input.py +100 -0
  89. easy_rec/python/layers/__init__.py +0 -0
  90. easy_rec/python/layers/backbone.py +571 -0
  91. easy_rec/python/layers/capsule_layer.py +176 -0
  92. easy_rec/python/layers/cmbf.py +390 -0
  93. easy_rec/python/layers/common_layers.py +192 -0
  94. easy_rec/python/layers/dnn.py +87 -0
  95. easy_rec/python/layers/embed_input_layer.py +25 -0
  96. easy_rec/python/layers/fm.py +26 -0
  97. easy_rec/python/layers/input_layer.py +396 -0
  98. easy_rec/python/layers/keras/__init__.py +34 -0
  99. easy_rec/python/layers/keras/activation.py +114 -0
  100. easy_rec/python/layers/keras/attention.py +267 -0
  101. easy_rec/python/layers/keras/auxiliary_loss.py +47 -0
  102. easy_rec/python/layers/keras/blocks.py +262 -0
  103. easy_rec/python/layers/keras/bst.py +119 -0
  104. easy_rec/python/layers/keras/custom_ops.py +250 -0
  105. easy_rec/python/layers/keras/data_augment.py +133 -0
  106. easy_rec/python/layers/keras/din.py +67 -0
  107. easy_rec/python/layers/keras/einsum_dense.py +598 -0
  108. easy_rec/python/layers/keras/embedding.py +81 -0
  109. easy_rec/python/layers/keras/fibinet.py +251 -0
  110. easy_rec/python/layers/keras/interaction.py +416 -0
  111. easy_rec/python/layers/keras/layer_norm.py +364 -0
  112. easy_rec/python/layers/keras/mask_net.py +166 -0
  113. easy_rec/python/layers/keras/multi_head_attention.py +717 -0
  114. easy_rec/python/layers/keras/multi_task.py +125 -0
  115. easy_rec/python/layers/keras/numerical_embedding.py +376 -0
  116. easy_rec/python/layers/keras/ppnet.py +194 -0
  117. easy_rec/python/layers/keras/transformer.py +192 -0
  118. easy_rec/python/layers/layer_norm.py +51 -0
  119. easy_rec/python/layers/mmoe.py +83 -0
  120. easy_rec/python/layers/multihead_attention.py +162 -0
  121. easy_rec/python/layers/multihead_cross_attention.py +749 -0
  122. easy_rec/python/layers/senet.py +73 -0
  123. easy_rec/python/layers/seq_input_layer.py +134 -0
  124. easy_rec/python/layers/sequence_feature_layer.py +249 -0
  125. easy_rec/python/layers/uniter.py +301 -0
  126. easy_rec/python/layers/utils.py +248 -0
  127. easy_rec/python/layers/variational_dropout_layer.py +130 -0
  128. easy_rec/python/loss/__init__.py +0 -0
  129. easy_rec/python/loss/circle_loss.py +82 -0
  130. easy_rec/python/loss/contrastive_loss.py +79 -0
  131. easy_rec/python/loss/f1_reweight_loss.py +38 -0
  132. easy_rec/python/loss/focal_loss.py +93 -0
  133. easy_rec/python/loss/jrc_loss.py +128 -0
  134. easy_rec/python/loss/listwise_loss.py +161 -0
  135. easy_rec/python/loss/multi_similarity.py +68 -0
  136. easy_rec/python/loss/pairwise_loss.py +307 -0
  137. easy_rec/python/loss/softmax_loss_with_negative_mining.py +110 -0
  138. easy_rec/python/loss/zero_inflated_lognormal.py +76 -0
  139. easy_rec/python/main.py +878 -0
  140. easy_rec/python/model/__init__.py +0 -0
  141. easy_rec/python/model/autoint.py +73 -0
  142. easy_rec/python/model/cmbf.py +47 -0
  143. easy_rec/python/model/collaborative_metric_learning.py +182 -0
  144. easy_rec/python/model/custom_model.py +323 -0
  145. easy_rec/python/model/dat.py +138 -0
  146. easy_rec/python/model/dbmtl.py +116 -0
  147. easy_rec/python/model/dcn.py +70 -0
  148. easy_rec/python/model/deepfm.py +106 -0
  149. easy_rec/python/model/dlrm.py +73 -0
  150. easy_rec/python/model/dropoutnet.py +207 -0
  151. easy_rec/python/model/dssm.py +154 -0
  152. easy_rec/python/model/dssm_senet.py +143 -0
  153. easy_rec/python/model/dummy_model.py +48 -0
  154. easy_rec/python/model/easy_rec_estimator.py +739 -0
  155. easy_rec/python/model/easy_rec_model.py +467 -0
  156. easy_rec/python/model/esmm.py +242 -0
  157. easy_rec/python/model/fm.py +63 -0
  158. easy_rec/python/model/match_model.py +357 -0
  159. easy_rec/python/model/mind.py +445 -0
  160. easy_rec/python/model/mmoe.py +70 -0
  161. easy_rec/python/model/multi_task_model.py +303 -0
  162. easy_rec/python/model/multi_tower.py +62 -0
  163. easy_rec/python/model/multi_tower_bst.py +190 -0
  164. easy_rec/python/model/multi_tower_din.py +130 -0
  165. easy_rec/python/model/multi_tower_recall.py +68 -0
  166. easy_rec/python/model/pdn.py +203 -0
  167. easy_rec/python/model/ple.py +120 -0
  168. easy_rec/python/model/rank_model.py +485 -0
  169. easy_rec/python/model/rocket_launching.py +203 -0
  170. easy_rec/python/model/simple_multi_task.py +54 -0
  171. easy_rec/python/model/uniter.py +46 -0
  172. easy_rec/python/model/wide_and_deep.py +121 -0
  173. easy_rec/python/ops/1.12/incr_record.so +0 -0
  174. easy_rec/python/ops/1.12/kafka.so +0 -0
  175. easy_rec/python/ops/1.12/libcustom_ops.so +0 -0
  176. easy_rec/python/ops/1.12/libembed_op.so +0 -0
  177. easy_rec/python/ops/1.12/libhiredis.so.1.0.0 +0 -0
  178. easy_rec/python/ops/1.12/librdkafka++.so.1 +0 -0
  179. easy_rec/python/ops/1.12/librdkafka.so.1 +0 -0
  180. easy_rec/python/ops/1.12/libredis++.so +0 -0
  181. easy_rec/python/ops/1.12/libredis++.so.1 +0 -0
  182. easy_rec/python/ops/1.12/libredis++.so.1.2.3 +0 -0
  183. easy_rec/python/ops/1.12/libstr_avx_op.so +0 -0
  184. easy_rec/python/ops/1.12/libwrite_sparse_kv.so +0 -0
  185. easy_rec/python/ops/1.15/incr_record.so +0 -0
  186. easy_rec/python/ops/1.15/kafka.so +0 -0
  187. easy_rec/python/ops/1.15/libcustom_ops.so +0 -0
  188. easy_rec/python/ops/1.15/libembed_op.so +0 -0
  189. easy_rec/python/ops/1.15/libhiredis.so.1.0.0 +0 -0
  190. easy_rec/python/ops/1.15/librdkafka++.so +0 -0
  191. easy_rec/python/ops/1.15/librdkafka++.so.1 +0 -0
  192. easy_rec/python/ops/1.15/librdkafka.so +0 -0
  193. easy_rec/python/ops/1.15/librdkafka.so.1 +0 -0
  194. easy_rec/python/ops/1.15/libredis++.so.1 +0 -0
  195. easy_rec/python/ops/1.15/libstr_avx_op.so +0 -0
  196. easy_rec/python/ops/2.12/libcustom_ops.so +0 -0
  197. easy_rec/python/ops/2.12/libload_embed.so +0 -0
  198. easy_rec/python/ops/2.12/libstr_avx_op.so +0 -0
  199. easy_rec/python/ops/__init__.py +0 -0
  200. easy_rec/python/ops/gen_kafka_ops.py +193 -0
  201. easy_rec/python/ops/gen_str_avx_op.py +28 -0
  202. easy_rec/python/ops/incr_record.py +30 -0
  203. easy_rec/python/predict.py +170 -0
  204. easy_rec/python/protos/__init__.py +0 -0
  205. easy_rec/python/protos/autoint_pb2.py +122 -0
  206. easy_rec/python/protos/backbone_pb2.py +1416 -0
  207. easy_rec/python/protos/cmbf_pb2.py +435 -0
  208. easy_rec/python/protos/collaborative_metric_learning_pb2.py +252 -0
  209. easy_rec/python/protos/custom_model_pb2.py +57 -0
  210. easy_rec/python/protos/dat_pb2.py +262 -0
  211. easy_rec/python/protos/data_source_pb2.py +422 -0
  212. easy_rec/python/protos/dataset_pb2.py +1920 -0
  213. easy_rec/python/protos/dbmtl_pb2.py +191 -0
  214. easy_rec/python/protos/dcn_pb2.py +197 -0
  215. easy_rec/python/protos/deepfm_pb2.py +163 -0
  216. easy_rec/python/protos/dlrm_pb2.py +163 -0
  217. easy_rec/python/protos/dnn_pb2.py +329 -0
  218. easy_rec/python/protos/dropoutnet_pb2.py +239 -0
  219. easy_rec/python/protos/dssm_pb2.py +262 -0
  220. easy_rec/python/protos/dssm_senet_pb2.py +282 -0
  221. easy_rec/python/protos/easy_rec_model_pb2.py +1672 -0
  222. easy_rec/python/protos/esmm_pb2.py +133 -0
  223. easy_rec/python/protos/eval_pb2.py +930 -0
  224. easy_rec/python/protos/export_pb2.py +379 -0
  225. easy_rec/python/protos/feature_config_pb2.py +1359 -0
  226. easy_rec/python/protos/fm_pb2.py +90 -0
  227. easy_rec/python/protos/hive_config_pb2.py +138 -0
  228. easy_rec/python/protos/hyperparams_pb2.py +624 -0
  229. easy_rec/python/protos/keras_layer_pb2.py +692 -0
  230. easy_rec/python/protos/layer_pb2.py +1936 -0
  231. easy_rec/python/protos/loss_pb2.py +1713 -0
  232. easy_rec/python/protos/mind_pb2.py +497 -0
  233. easy_rec/python/protos/mmoe_pb2.py +215 -0
  234. easy_rec/python/protos/multi_tower_pb2.py +295 -0
  235. easy_rec/python/protos/multi_tower_recall_pb2.py +198 -0
  236. easy_rec/python/protos/optimizer_pb2.py +2017 -0
  237. easy_rec/python/protos/pdn_pb2.py +293 -0
  238. easy_rec/python/protos/pipeline_pb2.py +516 -0
  239. easy_rec/python/protos/ple_pb2.py +231 -0
  240. easy_rec/python/protos/predict_pb2.py +1140 -0
  241. easy_rec/python/protos/rocket_launching_pb2.py +169 -0
  242. easy_rec/python/protos/seq_encoder_pb2.py +1084 -0
  243. easy_rec/python/protos/simi_pb2.py +54 -0
  244. easy_rec/python/protos/simple_multi_task_pb2.py +97 -0
  245. easy_rec/python/protos/tf_predict_pb2.py +630 -0
  246. easy_rec/python/protos/tower_pb2.py +661 -0
  247. easy_rec/python/protos/train_pb2.py +1197 -0
  248. easy_rec/python/protos/uniter_pb2.py +307 -0
  249. easy_rec/python/protos/variational_dropout_pb2.py +91 -0
  250. easy_rec/python/protos/wide_and_deep_pb2.py +131 -0
  251. easy_rec/python/test/__init__.py +0 -0
  252. easy_rec/python/test/csv_input_test.py +340 -0
  253. easy_rec/python/test/custom_early_stop_func.py +19 -0
  254. easy_rec/python/test/dh_local_run.py +104 -0
  255. easy_rec/python/test/embed_test.py +155 -0
  256. easy_rec/python/test/emr_run.py +119 -0
  257. easy_rec/python/test/eval_metric_test.py +107 -0
  258. easy_rec/python/test/excel_convert_test.py +64 -0
  259. easy_rec/python/test/export_test.py +513 -0
  260. easy_rec/python/test/fg_test.py +70 -0
  261. easy_rec/python/test/hive_input_test.py +311 -0
  262. easy_rec/python/test/hpo_test.py +235 -0
  263. easy_rec/python/test/kafka_test.py +373 -0
  264. easy_rec/python/test/local_incr_test.py +122 -0
  265. easy_rec/python/test/loss_test.py +110 -0
  266. easy_rec/python/test/odps_command.py +61 -0
  267. easy_rec/python/test/odps_local_run.py +86 -0
  268. easy_rec/python/test/odps_run.py +254 -0
  269. easy_rec/python/test/odps_test_cls.py +39 -0
  270. easy_rec/python/test/odps_test_prepare.py +198 -0
  271. easy_rec/python/test/odps_test_util.py +237 -0
  272. easy_rec/python/test/pre_check_test.py +54 -0
  273. easy_rec/python/test/predictor_test.py +394 -0
  274. easy_rec/python/test/rtp_convert_test.py +133 -0
  275. easy_rec/python/test/run.py +138 -0
  276. easy_rec/python/test/train_eval_test.py +1299 -0
  277. easy_rec/python/test/util_test.py +85 -0
  278. easy_rec/python/test/zero_inflated_lognormal_test.py +53 -0
  279. easy_rec/python/tools/__init__.py +0 -0
  280. easy_rec/python/tools/add_boundaries_to_config.py +67 -0
  281. easy_rec/python/tools/add_feature_info_to_config.py +145 -0
  282. easy_rec/python/tools/convert_config_format.py +48 -0
  283. easy_rec/python/tools/convert_rtp_data.py +79 -0
  284. easy_rec/python/tools/convert_rtp_fg.py +106 -0
  285. easy_rec/python/tools/create_config_from_excel.py +427 -0
  286. easy_rec/python/tools/criteo/__init__.py +0 -0
  287. easy_rec/python/tools/criteo/convert_data.py +157 -0
  288. easy_rec/python/tools/edit_lookup_graph.py +134 -0
  289. easy_rec/python/tools/faiss_index_pai.py +116 -0
  290. easy_rec/python/tools/feature_selection.py +316 -0
  291. easy_rec/python/tools/hit_rate_ds.py +223 -0
  292. easy_rec/python/tools/hit_rate_pai.py +138 -0
  293. easy_rec/python/tools/pre_check.py +120 -0
  294. easy_rec/python/tools/predict_and_chk.py +111 -0
  295. easy_rec/python/tools/read_kafka.py +55 -0
  296. easy_rec/python/tools/split_model_pai.py +286 -0
  297. easy_rec/python/tools/split_pdn_model_pai.py +272 -0
  298. easy_rec/python/tools/test_saved_model.py +80 -0
  299. easy_rec/python/tools/view_saved_model.py +39 -0
  300. easy_rec/python/tools/write_kafka.py +65 -0
  301. easy_rec/python/train_eval.py +325 -0
  302. easy_rec/python/utils/__init__.py +15 -0
  303. easy_rec/python/utils/activation.py +120 -0
  304. easy_rec/python/utils/check_utils.py +87 -0
  305. easy_rec/python/utils/compat.py +14 -0
  306. easy_rec/python/utils/config_util.py +652 -0
  307. easy_rec/python/utils/constant.py +43 -0
  308. easy_rec/python/utils/convert_rtp_fg.py +616 -0
  309. easy_rec/python/utils/dag.py +192 -0
  310. easy_rec/python/utils/distribution_utils.py +268 -0
  311. easy_rec/python/utils/ds_util.py +65 -0
  312. easy_rec/python/utils/embedding_utils.py +73 -0
  313. easy_rec/python/utils/estimator_utils.py +1036 -0
  314. easy_rec/python/utils/export_big_model.py +630 -0
  315. easy_rec/python/utils/expr_util.py +118 -0
  316. easy_rec/python/utils/fg_util.py +53 -0
  317. easy_rec/python/utils/hit_rate_utils.py +220 -0
  318. easy_rec/python/utils/hive_utils.py +183 -0
  319. easy_rec/python/utils/hpo_util.py +137 -0
  320. easy_rec/python/utils/hvd_utils.py +56 -0
  321. easy_rec/python/utils/input_utils.py +108 -0
  322. easy_rec/python/utils/io_util.py +282 -0
  323. easy_rec/python/utils/load_class.py +249 -0
  324. easy_rec/python/utils/meta_graph_editor.py +941 -0
  325. easy_rec/python/utils/multi_optimizer.py +62 -0
  326. easy_rec/python/utils/numpy_utils.py +18 -0
  327. easy_rec/python/utils/odps_util.py +79 -0
  328. easy_rec/python/utils/pai_util.py +86 -0
  329. easy_rec/python/utils/proto_util.py +90 -0
  330. easy_rec/python/utils/restore_filter.py +89 -0
  331. easy_rec/python/utils/shape_utils.py +432 -0
  332. easy_rec/python/utils/static_shape.py +71 -0
  333. easy_rec/python/utils/test_utils.py +866 -0
  334. easy_rec/python/utils/tf_utils.py +56 -0
  335. easy_rec/version.py +4 -0
  336. test/__init__.py +0 -0
@@ -0,0 +1,1084 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: easy_rec/python/protos/seq_encoder.proto
3
+
4
+ import sys
5
+
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pb2
8
+ from google.protobuf import message as _message
9
+ from google.protobuf import reflection as _reflection
10
+ from google.protobuf import symbol_database as _symbol_database
11
+
12
+ from easy_rec.python.protos import dnn_pb2 as easy__rec_dot_python_dot_protos_dot_dnn__pb2 # NOQA
13
+
14
+ _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
15
+ # @@protoc_insertion_point(imports)
16
+
17
+ _sym_db = _symbol_database.Default()
18
+
19
+ DESCRIPTOR = _descriptor.FileDescriptor(
20
+ name='easy_rec/python/protos/seq_encoder.proto',
21
+ package='protos',
22
+ syntax='proto2',
23
+ serialized_pb=_b(
24
+ '\n(easy_rec/python/protos/seq_encoder.proto\x12\x06protos\x1a easy_rec/python/protos/dnn.proto\"\xc5\x01\n\tAttention\x12\x18\n\tuse_scale\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x1b\n\x0cscale_by_dim\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x17\n\nscore_mode\x18\x03 \x01(\t:\x03\x64ot\x12\x12\n\x07\x64ropout\x18\x04 \x01(\x02:\x01\x30\x12\x0c\n\x04seed\x18\x05 \x01(\x05\x12&\n\x17return_attention_scores\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x0fuse_causal_mask\x18\x07 \x01(\x08:\x05\x66\x61lse\"\xba\x02\n\x12MultiHeadAttention\x12\x11\n\tnum_heads\x18\x01 \x02(\r\x12\x0f\n\x07key_dim\x18\x02 \x02(\r\x12\x11\n\tvalue_dim\x18\x03 \x01(\r\x12\x12\n\x07\x64ropout\x18\x04 \x01(\x02:\x01\x30\x12\x16\n\x08use_bias\x18\x05 \x01(\x08:\x04true\x12&\n\x17return_attention_scores\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x0fuse_causal_mask\x18\x07 \x01(\x08:\x05\x66\x61lse\x12\x14\n\x0coutput_shape\x18\x08 \x01(\r\x12\x16\n\x0e\x61ttention_axes\x18\t \x03(\x05\x12*\n\x12kernel_initializer\x18\n \x01(\t:\x0eglorot_uniform\x12\x1f\n\x10\x62ias_initializer\x18\x0b \x01(\t:\x05zeros\"\xe7\x02\n\x0bTransformer\x12\x13\n\x0bhidden_size\x18\x01 \x02(\r\x12\x19\n\x11num_hidden_layers\x18\x02 \x02(\r\x12\x1b\n\x13num_attention_heads\x18\x03 \x02(\r\x12\x19\n\x11intermediate_size\x18\x04 \x02(\r\x12\x18\n\nhidden_act\x18\x05 \x02(\t:\x04relu\x12 \n\x13hidden_dropout_prob\x18\x06 \x02(\x02:\x03\x30.1\x12\x12\n\nvocab_size\x18\x07 \x02(\r\x12$\n\x17max_position_embeddings\x18\x08 \x02(\r:\x03\x35\x31\x32\x12&\n\x17use_position_embeddings\x18\t \x02(\x08:\x05\x66\x61lse\x12)\n\x1boutput_all_token_embeddings\x18\n \x02(\x08:\x04true\x12\'\n\x1c\x61ttention_probs_dropout_prob\x18\x0b \x01(\x02:\x01\x30\"~\n\x0bTextEncoder\x12(\n\x0btransformer\x18\x01 \x02(\x0b\x32\x13.protos.Transformer\x12\x14\n\tseparator\x18\x02 \x02(\t:\x01 \x12\x12\n\nvocab_file\x18\x03 \x01(\t\x12\x1b\n\x10\x64\x65\x66\x61ult_token_id\x18\x04 \x01(\x05:\x01\x30\"\xbf\x03\n\nBSTEncoder\x12\x13\n\x0bhidden_size\x18\x01 \x02(\r\x12\x19\n\x11num_hidden_layers\x18\x02 \x02(\r\x12\x1b\n\x13num_attention_heads\x18\x03 \x02(\r\x12\x19\n\x11intermediate_size\x18\x04 \x02(\r\x12\x18\n\nhidden_act\x18\x05 \x02(\t:\x04gelu\x12 \n\x13hidden_dropout_prob\x18\x06 \x02(\x02:\x03\x30.1\x12)\n\x1c\x61ttention_probs_dropout_prob\x18\x07 \x02(\x02:\x03\x30.1\x12$\n\x17max_position_embeddings\x18\x08 \x02(\r:\x03\x35\x31\x32\x12%\n\x17use_position_embeddings\x18\t \x02(\x08:\x04true\x12\x1f\n\x11initializer_range\x18\n \x02(\x02:\x04\x30.02\x12)\n\x1boutput_all_token_embeddings\x18\x0b \x02(\x08:\x04true\x12\"\n\x14target_item_position\x18\x0c \x02(\t:\x04head\x12%\n\x17reserve_target_position\x18\r \x02(\x08:\x04true\"z\n\nDINEncoder\x12\"\n\rattention_dnn\x18\x01 \x02(\x0b\x32\x0b.protos.MLP\x12!\n\x13need_target_feature\x18\x02 \x02(\x08:\x04true\x12%\n\x14\x61ttention_normalizer\x18\x03 \x02(\t:\x07softmax\"\\\n\x0fSequenceAugment\x12\x16\n\tmask_rate\x18\x01 \x02(\x02:\x03\x30.6\x12\x16\n\tcrop_rate\x18\x02 \x02(\x02:\x03\x30.2\x12\x19\n\x0creorder_rate\x18\x03 \x02(\x02:\x03\x30.6'
25
+ ),
26
+ dependencies=[
27
+ easy__rec_dot_python_dot_protos_dot_dnn__pb2.DESCRIPTOR,
28
+ ])
29
+
30
+ _ATTENTION = _descriptor.Descriptor(
31
+ name='Attention',
32
+ full_name='protos.Attention',
33
+ filename=None,
34
+ file=DESCRIPTOR,
35
+ containing_type=None,
36
+ fields=[
37
+ _descriptor.FieldDescriptor(
38
+ name='use_scale',
39
+ full_name='protos.Attention.use_scale',
40
+ index=0,
41
+ number=1,
42
+ type=8,
43
+ cpp_type=7,
44
+ label=1,
45
+ has_default_value=True,
46
+ default_value=False,
47
+ message_type=None,
48
+ enum_type=None,
49
+ containing_type=None,
50
+ is_extension=False,
51
+ extension_scope=None,
52
+ options=None),
53
+ _descriptor.FieldDescriptor(
54
+ name='scale_by_dim',
55
+ full_name='protos.Attention.scale_by_dim',
56
+ index=1,
57
+ number=2,
58
+ type=8,
59
+ cpp_type=7,
60
+ label=1,
61
+ has_default_value=True,
62
+ default_value=False,
63
+ message_type=None,
64
+ enum_type=None,
65
+ containing_type=None,
66
+ is_extension=False,
67
+ extension_scope=None,
68
+ options=None),
69
+ _descriptor.FieldDescriptor(
70
+ name='score_mode',
71
+ full_name='protos.Attention.score_mode',
72
+ index=2,
73
+ number=3,
74
+ type=9,
75
+ cpp_type=9,
76
+ label=1,
77
+ has_default_value=True,
78
+ default_value=_b('dot').decode('utf-8'),
79
+ message_type=None,
80
+ enum_type=None,
81
+ containing_type=None,
82
+ is_extension=False,
83
+ extension_scope=None,
84
+ options=None),
85
+ _descriptor.FieldDescriptor(
86
+ name='dropout',
87
+ full_name='protos.Attention.dropout',
88
+ index=3,
89
+ number=4,
90
+ type=2,
91
+ cpp_type=6,
92
+ label=1,
93
+ has_default_value=True,
94
+ default_value=float(0),
95
+ message_type=None,
96
+ enum_type=None,
97
+ containing_type=None,
98
+ is_extension=False,
99
+ extension_scope=None,
100
+ options=None),
101
+ _descriptor.FieldDescriptor(
102
+ name='seed',
103
+ full_name='protos.Attention.seed',
104
+ index=4,
105
+ number=5,
106
+ type=5,
107
+ cpp_type=1,
108
+ label=1,
109
+ has_default_value=False,
110
+ default_value=0,
111
+ message_type=None,
112
+ enum_type=None,
113
+ containing_type=None,
114
+ is_extension=False,
115
+ extension_scope=None,
116
+ options=None),
117
+ _descriptor.FieldDescriptor(
118
+ name='return_attention_scores',
119
+ full_name='protos.Attention.return_attention_scores',
120
+ index=5,
121
+ number=6,
122
+ type=8,
123
+ cpp_type=7,
124
+ label=1,
125
+ has_default_value=True,
126
+ default_value=False,
127
+ message_type=None,
128
+ enum_type=None,
129
+ containing_type=None,
130
+ is_extension=False,
131
+ extension_scope=None,
132
+ options=None),
133
+ _descriptor.FieldDescriptor(
134
+ name='use_causal_mask',
135
+ full_name='protos.Attention.use_causal_mask',
136
+ index=6,
137
+ number=7,
138
+ type=8,
139
+ cpp_type=7,
140
+ label=1,
141
+ has_default_value=True,
142
+ default_value=False,
143
+ message_type=None,
144
+ enum_type=None,
145
+ containing_type=None,
146
+ is_extension=False,
147
+ extension_scope=None,
148
+ options=None),
149
+ ],
150
+ extensions=[],
151
+ nested_types=[],
152
+ enum_types=[],
153
+ options=None,
154
+ is_extendable=False,
155
+ syntax='proto2',
156
+ extension_ranges=[],
157
+ oneofs=[],
158
+ serialized_start=87,
159
+ serialized_end=284,
160
+ )
161
+
162
+ _MULTIHEADATTENTION = _descriptor.Descriptor(
163
+ name='MultiHeadAttention',
164
+ full_name='protos.MultiHeadAttention',
165
+ filename=None,
166
+ file=DESCRIPTOR,
167
+ containing_type=None,
168
+ fields=[
169
+ _descriptor.FieldDescriptor(
170
+ name='num_heads',
171
+ full_name='protos.MultiHeadAttention.num_heads',
172
+ index=0,
173
+ number=1,
174
+ type=13,
175
+ cpp_type=3,
176
+ label=2,
177
+ has_default_value=False,
178
+ default_value=0,
179
+ message_type=None,
180
+ enum_type=None,
181
+ containing_type=None,
182
+ is_extension=False,
183
+ extension_scope=None,
184
+ options=None),
185
+ _descriptor.FieldDescriptor(
186
+ name='key_dim',
187
+ full_name='protos.MultiHeadAttention.key_dim',
188
+ index=1,
189
+ number=2,
190
+ type=13,
191
+ cpp_type=3,
192
+ label=2,
193
+ has_default_value=False,
194
+ default_value=0,
195
+ message_type=None,
196
+ enum_type=None,
197
+ containing_type=None,
198
+ is_extension=False,
199
+ extension_scope=None,
200
+ options=None),
201
+ _descriptor.FieldDescriptor(
202
+ name='value_dim',
203
+ full_name='protos.MultiHeadAttention.value_dim',
204
+ index=2,
205
+ number=3,
206
+ type=13,
207
+ cpp_type=3,
208
+ label=1,
209
+ has_default_value=False,
210
+ default_value=0,
211
+ message_type=None,
212
+ enum_type=None,
213
+ containing_type=None,
214
+ is_extension=False,
215
+ extension_scope=None,
216
+ options=None),
217
+ _descriptor.FieldDescriptor(
218
+ name='dropout',
219
+ full_name='protos.MultiHeadAttention.dropout',
220
+ index=3,
221
+ number=4,
222
+ type=2,
223
+ cpp_type=6,
224
+ label=1,
225
+ has_default_value=True,
226
+ default_value=float(0),
227
+ message_type=None,
228
+ enum_type=None,
229
+ containing_type=None,
230
+ is_extension=False,
231
+ extension_scope=None,
232
+ options=None),
233
+ _descriptor.FieldDescriptor(
234
+ name='use_bias',
235
+ full_name='protos.MultiHeadAttention.use_bias',
236
+ index=4,
237
+ number=5,
238
+ type=8,
239
+ cpp_type=7,
240
+ label=1,
241
+ has_default_value=True,
242
+ default_value=True,
243
+ message_type=None,
244
+ enum_type=None,
245
+ containing_type=None,
246
+ is_extension=False,
247
+ extension_scope=None,
248
+ options=None),
249
+ _descriptor.FieldDescriptor(
250
+ name='return_attention_scores',
251
+ full_name='protos.MultiHeadAttention.return_attention_scores',
252
+ index=5,
253
+ number=6,
254
+ type=8,
255
+ cpp_type=7,
256
+ label=1,
257
+ has_default_value=True,
258
+ default_value=False,
259
+ message_type=None,
260
+ enum_type=None,
261
+ containing_type=None,
262
+ is_extension=False,
263
+ extension_scope=None,
264
+ options=None),
265
+ _descriptor.FieldDescriptor(
266
+ name='use_causal_mask',
267
+ full_name='protos.MultiHeadAttention.use_causal_mask',
268
+ index=6,
269
+ number=7,
270
+ type=8,
271
+ cpp_type=7,
272
+ label=1,
273
+ has_default_value=True,
274
+ default_value=False,
275
+ message_type=None,
276
+ enum_type=None,
277
+ containing_type=None,
278
+ is_extension=False,
279
+ extension_scope=None,
280
+ options=None),
281
+ _descriptor.FieldDescriptor(
282
+ name='output_shape',
283
+ full_name='protos.MultiHeadAttention.output_shape',
284
+ index=7,
285
+ number=8,
286
+ type=13,
287
+ cpp_type=3,
288
+ label=1,
289
+ has_default_value=False,
290
+ default_value=0,
291
+ message_type=None,
292
+ enum_type=None,
293
+ containing_type=None,
294
+ is_extension=False,
295
+ extension_scope=None,
296
+ options=None),
297
+ _descriptor.FieldDescriptor(
298
+ name='attention_axes',
299
+ full_name='protos.MultiHeadAttention.attention_axes',
300
+ index=8,
301
+ number=9,
302
+ type=5,
303
+ cpp_type=1,
304
+ label=3,
305
+ has_default_value=False,
306
+ default_value=[],
307
+ message_type=None,
308
+ enum_type=None,
309
+ containing_type=None,
310
+ is_extension=False,
311
+ extension_scope=None,
312
+ options=None),
313
+ _descriptor.FieldDescriptor(
314
+ name='kernel_initializer',
315
+ full_name='protos.MultiHeadAttention.kernel_initializer',
316
+ index=9,
317
+ number=10,
318
+ type=9,
319
+ cpp_type=9,
320
+ label=1,
321
+ has_default_value=True,
322
+ default_value=_b('glorot_uniform').decode('utf-8'),
323
+ message_type=None,
324
+ enum_type=None,
325
+ containing_type=None,
326
+ is_extension=False,
327
+ extension_scope=None,
328
+ options=None),
329
+ _descriptor.FieldDescriptor(
330
+ name='bias_initializer',
331
+ full_name='protos.MultiHeadAttention.bias_initializer',
332
+ index=10,
333
+ number=11,
334
+ type=9,
335
+ cpp_type=9,
336
+ label=1,
337
+ has_default_value=True,
338
+ default_value=_b('zeros').decode('utf-8'),
339
+ message_type=None,
340
+ enum_type=None,
341
+ containing_type=None,
342
+ is_extension=False,
343
+ extension_scope=None,
344
+ options=None),
345
+ ],
346
+ extensions=[],
347
+ nested_types=[],
348
+ enum_types=[],
349
+ options=None,
350
+ is_extendable=False,
351
+ syntax='proto2',
352
+ extension_ranges=[],
353
+ oneofs=[],
354
+ serialized_start=287,
355
+ serialized_end=601,
356
+ )
357
+
358
+ _TRANSFORMER = _descriptor.Descriptor(
359
+ name='Transformer',
360
+ full_name='protos.Transformer',
361
+ filename=None,
362
+ file=DESCRIPTOR,
363
+ containing_type=None,
364
+ fields=[
365
+ _descriptor.FieldDescriptor(
366
+ name='hidden_size',
367
+ full_name='protos.Transformer.hidden_size',
368
+ index=0,
369
+ number=1,
370
+ type=13,
371
+ cpp_type=3,
372
+ label=2,
373
+ has_default_value=False,
374
+ default_value=0,
375
+ message_type=None,
376
+ enum_type=None,
377
+ containing_type=None,
378
+ is_extension=False,
379
+ extension_scope=None,
380
+ options=None),
381
+ _descriptor.FieldDescriptor(
382
+ name='num_hidden_layers',
383
+ full_name='protos.Transformer.num_hidden_layers',
384
+ index=1,
385
+ number=2,
386
+ type=13,
387
+ cpp_type=3,
388
+ label=2,
389
+ has_default_value=False,
390
+ default_value=0,
391
+ message_type=None,
392
+ enum_type=None,
393
+ containing_type=None,
394
+ is_extension=False,
395
+ extension_scope=None,
396
+ options=None),
397
+ _descriptor.FieldDescriptor(
398
+ name='num_attention_heads',
399
+ full_name='protos.Transformer.num_attention_heads',
400
+ index=2,
401
+ number=3,
402
+ type=13,
403
+ cpp_type=3,
404
+ label=2,
405
+ has_default_value=False,
406
+ default_value=0,
407
+ message_type=None,
408
+ enum_type=None,
409
+ containing_type=None,
410
+ is_extension=False,
411
+ extension_scope=None,
412
+ options=None),
413
+ _descriptor.FieldDescriptor(
414
+ name='intermediate_size',
415
+ full_name='protos.Transformer.intermediate_size',
416
+ index=3,
417
+ number=4,
418
+ type=13,
419
+ cpp_type=3,
420
+ label=2,
421
+ has_default_value=False,
422
+ default_value=0,
423
+ message_type=None,
424
+ enum_type=None,
425
+ containing_type=None,
426
+ is_extension=False,
427
+ extension_scope=None,
428
+ options=None),
429
+ _descriptor.FieldDescriptor(
430
+ name='hidden_act',
431
+ full_name='protos.Transformer.hidden_act',
432
+ index=4,
433
+ number=5,
434
+ type=9,
435
+ cpp_type=9,
436
+ label=2,
437
+ has_default_value=True,
438
+ default_value=_b('relu').decode('utf-8'),
439
+ message_type=None,
440
+ enum_type=None,
441
+ containing_type=None,
442
+ is_extension=False,
443
+ extension_scope=None,
444
+ options=None),
445
+ _descriptor.FieldDescriptor(
446
+ name='hidden_dropout_prob',
447
+ full_name='protos.Transformer.hidden_dropout_prob',
448
+ index=5,
449
+ number=6,
450
+ type=2,
451
+ cpp_type=6,
452
+ label=2,
453
+ has_default_value=True,
454
+ default_value=float(0.1),
455
+ message_type=None,
456
+ enum_type=None,
457
+ containing_type=None,
458
+ is_extension=False,
459
+ extension_scope=None,
460
+ options=None),
461
+ _descriptor.FieldDescriptor(
462
+ name='vocab_size',
463
+ full_name='protos.Transformer.vocab_size',
464
+ index=6,
465
+ number=7,
466
+ type=13,
467
+ cpp_type=3,
468
+ label=2,
469
+ has_default_value=False,
470
+ default_value=0,
471
+ message_type=None,
472
+ enum_type=None,
473
+ containing_type=None,
474
+ is_extension=False,
475
+ extension_scope=None,
476
+ options=None),
477
+ _descriptor.FieldDescriptor(
478
+ name='max_position_embeddings',
479
+ full_name='protos.Transformer.max_position_embeddings',
480
+ index=7,
481
+ number=8,
482
+ type=13,
483
+ cpp_type=3,
484
+ label=2,
485
+ has_default_value=True,
486
+ default_value=512,
487
+ message_type=None,
488
+ enum_type=None,
489
+ containing_type=None,
490
+ is_extension=False,
491
+ extension_scope=None,
492
+ options=None),
493
+ _descriptor.FieldDescriptor(
494
+ name='use_position_embeddings',
495
+ full_name='protos.Transformer.use_position_embeddings',
496
+ index=8,
497
+ number=9,
498
+ type=8,
499
+ cpp_type=7,
500
+ label=2,
501
+ has_default_value=True,
502
+ default_value=False,
503
+ message_type=None,
504
+ enum_type=None,
505
+ containing_type=None,
506
+ is_extension=False,
507
+ extension_scope=None,
508
+ options=None),
509
+ _descriptor.FieldDescriptor(
510
+ name='output_all_token_embeddings',
511
+ full_name='protos.Transformer.output_all_token_embeddings',
512
+ index=9,
513
+ number=10,
514
+ type=8,
515
+ cpp_type=7,
516
+ label=2,
517
+ has_default_value=True,
518
+ default_value=True,
519
+ message_type=None,
520
+ enum_type=None,
521
+ containing_type=None,
522
+ is_extension=False,
523
+ extension_scope=None,
524
+ options=None),
525
+ _descriptor.FieldDescriptor(
526
+ name='attention_probs_dropout_prob',
527
+ full_name='protos.Transformer.attention_probs_dropout_prob',
528
+ index=10,
529
+ number=11,
530
+ type=2,
531
+ cpp_type=6,
532
+ label=1,
533
+ has_default_value=True,
534
+ default_value=float(0),
535
+ message_type=None,
536
+ enum_type=None,
537
+ containing_type=None,
538
+ is_extension=False,
539
+ extension_scope=None,
540
+ options=None),
541
+ ],
542
+ extensions=[],
543
+ nested_types=[],
544
+ enum_types=[],
545
+ options=None,
546
+ is_extendable=False,
547
+ syntax='proto2',
548
+ extension_ranges=[],
549
+ oneofs=[],
550
+ serialized_start=604,
551
+ serialized_end=963,
552
+ )
553
+
554
+ _TEXTENCODER = _descriptor.Descriptor(
555
+ name='TextEncoder',
556
+ full_name='protos.TextEncoder',
557
+ filename=None,
558
+ file=DESCRIPTOR,
559
+ containing_type=None,
560
+ fields=[
561
+ _descriptor.FieldDescriptor(
562
+ name='transformer',
563
+ full_name='protos.TextEncoder.transformer',
564
+ index=0,
565
+ number=1,
566
+ type=11,
567
+ cpp_type=10,
568
+ label=2,
569
+ has_default_value=False,
570
+ default_value=None,
571
+ message_type=None,
572
+ enum_type=None,
573
+ containing_type=None,
574
+ is_extension=False,
575
+ extension_scope=None,
576
+ options=None),
577
+ _descriptor.FieldDescriptor(
578
+ name='separator',
579
+ full_name='protos.TextEncoder.separator',
580
+ index=1,
581
+ number=2,
582
+ type=9,
583
+ cpp_type=9,
584
+ label=2,
585
+ has_default_value=True,
586
+ default_value=_b(' ').decode('utf-8'),
587
+ message_type=None,
588
+ enum_type=None,
589
+ containing_type=None,
590
+ is_extension=False,
591
+ extension_scope=None,
592
+ options=None),
593
+ _descriptor.FieldDescriptor(
594
+ name='vocab_file',
595
+ full_name='protos.TextEncoder.vocab_file',
596
+ index=2,
597
+ number=3,
598
+ type=9,
599
+ cpp_type=9,
600
+ label=1,
601
+ has_default_value=False,
602
+ default_value=_b('').decode('utf-8'),
603
+ message_type=None,
604
+ enum_type=None,
605
+ containing_type=None,
606
+ is_extension=False,
607
+ extension_scope=None,
608
+ options=None),
609
+ _descriptor.FieldDescriptor(
610
+ name='default_token_id',
611
+ full_name='protos.TextEncoder.default_token_id',
612
+ index=3,
613
+ number=4,
614
+ type=5,
615
+ cpp_type=1,
616
+ label=1,
617
+ has_default_value=True,
618
+ default_value=0,
619
+ message_type=None,
620
+ enum_type=None,
621
+ containing_type=None,
622
+ is_extension=False,
623
+ extension_scope=None,
624
+ options=None),
625
+ ],
626
+ extensions=[],
627
+ nested_types=[],
628
+ enum_types=[],
629
+ options=None,
630
+ is_extendable=False,
631
+ syntax='proto2',
632
+ extension_ranges=[],
633
+ oneofs=[],
634
+ serialized_start=965,
635
+ serialized_end=1091,
636
+ )
637
+
638
+ _BSTENCODER = _descriptor.Descriptor(
639
+ name='BSTEncoder',
640
+ full_name='protos.BSTEncoder',
641
+ filename=None,
642
+ file=DESCRIPTOR,
643
+ containing_type=None,
644
+ fields=[
645
+ _descriptor.FieldDescriptor(
646
+ name='hidden_size',
647
+ full_name='protos.BSTEncoder.hidden_size',
648
+ index=0,
649
+ number=1,
650
+ type=13,
651
+ cpp_type=3,
652
+ label=2,
653
+ has_default_value=False,
654
+ default_value=0,
655
+ message_type=None,
656
+ enum_type=None,
657
+ containing_type=None,
658
+ is_extension=False,
659
+ extension_scope=None,
660
+ options=None),
661
+ _descriptor.FieldDescriptor(
662
+ name='num_hidden_layers',
663
+ full_name='protos.BSTEncoder.num_hidden_layers',
664
+ index=1,
665
+ number=2,
666
+ type=13,
667
+ cpp_type=3,
668
+ label=2,
669
+ has_default_value=False,
670
+ default_value=0,
671
+ message_type=None,
672
+ enum_type=None,
673
+ containing_type=None,
674
+ is_extension=False,
675
+ extension_scope=None,
676
+ options=None),
677
+ _descriptor.FieldDescriptor(
678
+ name='num_attention_heads',
679
+ full_name='protos.BSTEncoder.num_attention_heads',
680
+ index=2,
681
+ number=3,
682
+ type=13,
683
+ cpp_type=3,
684
+ label=2,
685
+ has_default_value=False,
686
+ default_value=0,
687
+ message_type=None,
688
+ enum_type=None,
689
+ containing_type=None,
690
+ is_extension=False,
691
+ extension_scope=None,
692
+ options=None),
693
+ _descriptor.FieldDescriptor(
694
+ name='intermediate_size',
695
+ full_name='protos.BSTEncoder.intermediate_size',
696
+ index=3,
697
+ number=4,
698
+ type=13,
699
+ cpp_type=3,
700
+ label=2,
701
+ has_default_value=False,
702
+ default_value=0,
703
+ message_type=None,
704
+ enum_type=None,
705
+ containing_type=None,
706
+ is_extension=False,
707
+ extension_scope=None,
708
+ options=None),
709
+ _descriptor.FieldDescriptor(
710
+ name='hidden_act',
711
+ full_name='protos.BSTEncoder.hidden_act',
712
+ index=4,
713
+ number=5,
714
+ type=9,
715
+ cpp_type=9,
716
+ label=2,
717
+ has_default_value=True,
718
+ default_value=_b('gelu').decode('utf-8'),
719
+ message_type=None,
720
+ enum_type=None,
721
+ containing_type=None,
722
+ is_extension=False,
723
+ extension_scope=None,
724
+ options=None),
725
+ _descriptor.FieldDescriptor(
726
+ name='hidden_dropout_prob',
727
+ full_name='protos.BSTEncoder.hidden_dropout_prob',
728
+ index=5,
729
+ number=6,
730
+ type=2,
731
+ cpp_type=6,
732
+ label=2,
733
+ has_default_value=True,
734
+ default_value=float(0.1),
735
+ message_type=None,
736
+ enum_type=None,
737
+ containing_type=None,
738
+ is_extension=False,
739
+ extension_scope=None,
740
+ options=None),
741
+ _descriptor.FieldDescriptor(
742
+ name='attention_probs_dropout_prob',
743
+ full_name='protos.BSTEncoder.attention_probs_dropout_prob',
744
+ index=6,
745
+ number=7,
746
+ type=2,
747
+ cpp_type=6,
748
+ label=2,
749
+ has_default_value=True,
750
+ default_value=float(0.1),
751
+ message_type=None,
752
+ enum_type=None,
753
+ containing_type=None,
754
+ is_extension=False,
755
+ extension_scope=None,
756
+ options=None),
757
+ _descriptor.FieldDescriptor(
758
+ name='max_position_embeddings',
759
+ full_name='protos.BSTEncoder.max_position_embeddings',
760
+ index=7,
761
+ number=8,
762
+ type=13,
763
+ cpp_type=3,
764
+ label=2,
765
+ has_default_value=True,
766
+ default_value=512,
767
+ message_type=None,
768
+ enum_type=None,
769
+ containing_type=None,
770
+ is_extension=False,
771
+ extension_scope=None,
772
+ options=None),
773
+ _descriptor.FieldDescriptor(
774
+ name='use_position_embeddings',
775
+ full_name='protos.BSTEncoder.use_position_embeddings',
776
+ index=8,
777
+ number=9,
778
+ type=8,
779
+ cpp_type=7,
780
+ label=2,
781
+ has_default_value=True,
782
+ default_value=True,
783
+ message_type=None,
784
+ enum_type=None,
785
+ containing_type=None,
786
+ is_extension=False,
787
+ extension_scope=None,
788
+ options=None),
789
+ _descriptor.FieldDescriptor(
790
+ name='initializer_range',
791
+ full_name='protos.BSTEncoder.initializer_range',
792
+ index=9,
793
+ number=10,
794
+ type=2,
795
+ cpp_type=6,
796
+ label=2,
797
+ has_default_value=True,
798
+ default_value=float(0.02),
799
+ message_type=None,
800
+ enum_type=None,
801
+ containing_type=None,
802
+ is_extension=False,
803
+ extension_scope=None,
804
+ options=None),
805
+ _descriptor.FieldDescriptor(
806
+ name='output_all_token_embeddings',
807
+ full_name='protos.BSTEncoder.output_all_token_embeddings',
808
+ index=10,
809
+ number=11,
810
+ type=8,
811
+ cpp_type=7,
812
+ label=2,
813
+ has_default_value=True,
814
+ default_value=True,
815
+ message_type=None,
816
+ enum_type=None,
817
+ containing_type=None,
818
+ is_extension=False,
819
+ extension_scope=None,
820
+ options=None),
821
+ _descriptor.FieldDescriptor(
822
+ name='target_item_position',
823
+ full_name='protos.BSTEncoder.target_item_position',
824
+ index=11,
825
+ number=12,
826
+ type=9,
827
+ cpp_type=9,
828
+ label=2,
829
+ has_default_value=True,
830
+ default_value=_b('head').decode('utf-8'),
831
+ message_type=None,
832
+ enum_type=None,
833
+ containing_type=None,
834
+ is_extension=False,
835
+ extension_scope=None,
836
+ options=None),
837
+ _descriptor.FieldDescriptor(
838
+ name='reserve_target_position',
839
+ full_name='protos.BSTEncoder.reserve_target_position',
840
+ index=12,
841
+ number=13,
842
+ type=8,
843
+ cpp_type=7,
844
+ label=2,
845
+ has_default_value=True,
846
+ default_value=True,
847
+ message_type=None,
848
+ enum_type=None,
849
+ containing_type=None,
850
+ is_extension=False,
851
+ extension_scope=None,
852
+ options=None),
853
+ ],
854
+ extensions=[],
855
+ nested_types=[],
856
+ enum_types=[],
857
+ options=None,
858
+ is_extendable=False,
859
+ syntax='proto2',
860
+ extension_ranges=[],
861
+ oneofs=[],
862
+ serialized_start=1094,
863
+ serialized_end=1541,
864
+ )
865
+
866
+ _DINENCODER = _descriptor.Descriptor(
867
+ name='DINEncoder',
868
+ full_name='protos.DINEncoder',
869
+ filename=None,
870
+ file=DESCRIPTOR,
871
+ containing_type=None,
872
+ fields=[
873
+ _descriptor.FieldDescriptor(
874
+ name='attention_dnn',
875
+ full_name='protos.DINEncoder.attention_dnn',
876
+ index=0,
877
+ number=1,
878
+ type=11,
879
+ cpp_type=10,
880
+ label=2,
881
+ has_default_value=False,
882
+ default_value=None,
883
+ message_type=None,
884
+ enum_type=None,
885
+ containing_type=None,
886
+ is_extension=False,
887
+ extension_scope=None,
888
+ options=None),
889
+ _descriptor.FieldDescriptor(
890
+ name='need_target_feature',
891
+ full_name='protos.DINEncoder.need_target_feature',
892
+ index=1,
893
+ number=2,
894
+ type=8,
895
+ cpp_type=7,
896
+ label=2,
897
+ has_default_value=True,
898
+ default_value=True,
899
+ message_type=None,
900
+ enum_type=None,
901
+ containing_type=None,
902
+ is_extension=False,
903
+ extension_scope=None,
904
+ options=None),
905
+ _descriptor.FieldDescriptor(
906
+ name='attention_normalizer',
907
+ full_name='protos.DINEncoder.attention_normalizer',
908
+ index=2,
909
+ number=3,
910
+ type=9,
911
+ cpp_type=9,
912
+ label=2,
913
+ has_default_value=True,
914
+ default_value=_b('softmax').decode('utf-8'),
915
+ message_type=None,
916
+ enum_type=None,
917
+ containing_type=None,
918
+ is_extension=False,
919
+ extension_scope=None,
920
+ options=None),
921
+ ],
922
+ extensions=[],
923
+ nested_types=[],
924
+ enum_types=[],
925
+ options=None,
926
+ is_extendable=False,
927
+ syntax='proto2',
928
+ extension_ranges=[],
929
+ oneofs=[],
930
+ serialized_start=1543,
931
+ serialized_end=1665,
932
+ )
933
+
934
+ _SEQUENCEAUGMENT = _descriptor.Descriptor(
935
+ name='SequenceAugment',
936
+ full_name='protos.SequenceAugment',
937
+ filename=None,
938
+ file=DESCRIPTOR,
939
+ containing_type=None,
940
+ fields=[
941
+ _descriptor.FieldDescriptor(
942
+ name='mask_rate',
943
+ full_name='protos.SequenceAugment.mask_rate',
944
+ index=0,
945
+ number=1,
946
+ type=2,
947
+ cpp_type=6,
948
+ label=2,
949
+ has_default_value=True,
950
+ default_value=float(0.6),
951
+ message_type=None,
952
+ enum_type=None,
953
+ containing_type=None,
954
+ is_extension=False,
955
+ extension_scope=None,
956
+ options=None),
957
+ _descriptor.FieldDescriptor(
958
+ name='crop_rate',
959
+ full_name='protos.SequenceAugment.crop_rate',
960
+ index=1,
961
+ number=2,
962
+ type=2,
963
+ cpp_type=6,
964
+ label=2,
965
+ has_default_value=True,
966
+ default_value=float(0.2),
967
+ message_type=None,
968
+ enum_type=None,
969
+ containing_type=None,
970
+ is_extension=False,
971
+ extension_scope=None,
972
+ options=None),
973
+ _descriptor.FieldDescriptor(
974
+ name='reorder_rate',
975
+ full_name='protos.SequenceAugment.reorder_rate',
976
+ index=2,
977
+ number=3,
978
+ type=2,
979
+ cpp_type=6,
980
+ label=2,
981
+ has_default_value=True,
982
+ default_value=float(0.6),
983
+ message_type=None,
984
+ enum_type=None,
985
+ containing_type=None,
986
+ is_extension=False,
987
+ extension_scope=None,
988
+ options=None),
989
+ ],
990
+ extensions=[],
991
+ nested_types=[],
992
+ enum_types=[],
993
+ options=None,
994
+ is_extendable=False,
995
+ syntax='proto2',
996
+ extension_ranges=[],
997
+ oneofs=[],
998
+ serialized_start=1667,
999
+ serialized_end=1759,
1000
+ )
1001
+
1002
+ _TEXTENCODER.fields_by_name['transformer'].message_type = _TRANSFORMER
1003
+ _DINENCODER.fields_by_name[
1004
+ 'attention_dnn'].message_type = easy__rec_dot_python_dot_protos_dot_dnn__pb2._MLP
1005
+ DESCRIPTOR.message_types_by_name['Attention'] = _ATTENTION
1006
+ DESCRIPTOR.message_types_by_name['MultiHeadAttention'] = _MULTIHEADATTENTION
1007
+ DESCRIPTOR.message_types_by_name['Transformer'] = _TRANSFORMER
1008
+ DESCRIPTOR.message_types_by_name['TextEncoder'] = _TEXTENCODER
1009
+ DESCRIPTOR.message_types_by_name['BSTEncoder'] = _BSTENCODER
1010
+ DESCRIPTOR.message_types_by_name['DINEncoder'] = _DINENCODER
1011
+ DESCRIPTOR.message_types_by_name['SequenceAugment'] = _SEQUENCEAUGMENT
1012
+ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
1013
+
1014
+ Attention = _reflection.GeneratedProtocolMessageType(
1015
+ 'Attention',
1016
+ (_message.Message,),
1017
+ dict(
1018
+ DESCRIPTOR=_ATTENTION,
1019
+ __module__='easy_rec.python.protos.seq_encoder_pb2'
1020
+ # @@protoc_insertion_point(class_scope:protos.Attention)
1021
+ ))
1022
+ _sym_db.RegisterMessage(Attention)
1023
+
1024
+ MultiHeadAttention = _reflection.GeneratedProtocolMessageType(
1025
+ 'MultiHeadAttention',
1026
+ (_message.Message,),
1027
+ dict(
1028
+ DESCRIPTOR=_MULTIHEADATTENTION,
1029
+ __module__='easy_rec.python.protos.seq_encoder_pb2'
1030
+ # @@protoc_insertion_point(class_scope:protos.MultiHeadAttention)
1031
+ ))
1032
+ _sym_db.RegisterMessage(MultiHeadAttention)
1033
+
1034
+ Transformer = _reflection.GeneratedProtocolMessageType(
1035
+ 'Transformer',
1036
+ (_message.Message,),
1037
+ dict(
1038
+ DESCRIPTOR=_TRANSFORMER,
1039
+ __module__='easy_rec.python.protos.seq_encoder_pb2'
1040
+ # @@protoc_insertion_point(class_scope:protos.Transformer)
1041
+ ))
1042
+ _sym_db.RegisterMessage(Transformer)
1043
+
1044
+ TextEncoder = _reflection.GeneratedProtocolMessageType(
1045
+ 'TextEncoder',
1046
+ (_message.Message,),
1047
+ dict(
1048
+ DESCRIPTOR=_TEXTENCODER,
1049
+ __module__='easy_rec.python.protos.seq_encoder_pb2'
1050
+ # @@protoc_insertion_point(class_scope:protos.TextEncoder)
1051
+ ))
1052
+ _sym_db.RegisterMessage(TextEncoder)
1053
+
1054
+ BSTEncoder = _reflection.GeneratedProtocolMessageType(
1055
+ 'BSTEncoder',
1056
+ (_message.Message,),
1057
+ dict(
1058
+ DESCRIPTOR=_BSTENCODER,
1059
+ __module__='easy_rec.python.protos.seq_encoder_pb2'
1060
+ # @@protoc_insertion_point(class_scope:protos.BSTEncoder)
1061
+ ))
1062
+ _sym_db.RegisterMessage(BSTEncoder)
1063
+
1064
+ DINEncoder = _reflection.GeneratedProtocolMessageType(
1065
+ 'DINEncoder',
1066
+ (_message.Message,),
1067
+ dict(
1068
+ DESCRIPTOR=_DINENCODER,
1069
+ __module__='easy_rec.python.protos.seq_encoder_pb2'
1070
+ # @@protoc_insertion_point(class_scope:protos.DINEncoder)
1071
+ ))
1072
+ _sym_db.RegisterMessage(DINEncoder)
1073
+
1074
+ SequenceAugment = _reflection.GeneratedProtocolMessageType(
1075
+ 'SequenceAugment',
1076
+ (_message.Message,),
1077
+ dict(
1078
+ DESCRIPTOR=_SEQUENCEAUGMENT,
1079
+ __module__='easy_rec.python.protos.seq_encoder_pb2'
1080
+ # @@protoc_insertion_point(class_scope:protos.SequenceAugment)
1081
+ ))
1082
+ _sym_db.RegisterMessage(SequenceAugment)
1083
+
1084
+ # @@protoc_insertion_point(module_scope)