Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the custom_op_name consistent and backout weights... (#1949)
Summary: Pull Request resolved: #1949 # context * backout the previous diff for weights in the graph * make the custom_op name consistent # before ``` (Pdb) ep.graph.print_tabular() opcode name target args kwargs ------------- ---------------------------------------- ----------------------------------------------------- ------------------------------------------------------------------------------------------------------------------------------------- -------- placeholder p_ebc1_embedding_bags_t1_weight p_ebc1_embedding_bags_t1_weight () {} placeholder p_ebc1_embedding_bags_t2_weight p_ebc1_embedding_bags_t2_weight () {} placeholder p_ebc2_embedding_bags_t3_weight p_ebc2_embedding_bags_t3_weight () {} placeholder p_ebc2_embedding_bags_t4_weight p_ebc2_embedding_bags_t4_weight () {} placeholder features__values features__values () {} placeholder features__weights features__weights () {} placeholder features__lengths features__lengths () {} placeholder features__offsets features__offsets () {} call_function embedding_bag_collection_140614752342208 custom.EmbeddingBagCollection_140614752342208.default ([features__values, features__weights, None, features__offsets, p_ebc1_embedding_bags_t1_weight, p_ebc1_embedding_bags_t2_weight], 2) {} call_function getitem <built-in function getitem> (embedding_bag_collection_140614752342208, 0) {} call_function embedding_bag_collection_140614752342209 custom.EmbeddingBagCollection_140614752342208.default ([features__values, features__weights, None, features__offsets, p_ebc2_embedding_bags_t3_weight, p_ebc2_embedding_bags_t4_weight], 2) {} call_function getitem_1 <built-in function getitem> (embedding_bag_collection_140614752342209, 0) {} call_function cat aten.cat.default ([getitem, getitem_1], 1) {} output output output ((cat,),) {} ``` # after ``` (Pdb) ep.graph.print_tabular() opcode name target args kwargs ------------- ------------------------------- --------------------------------------- ------------------------------------------------------------------- -------- placeholder p_ebc1_embedding_bags_t1_weight p_ebc1_embedding_bags_t1_weight () {} placeholder p_ebc1_embedding_bags_t2_weight p_ebc1_embedding_bags_t2_weight () {} placeholder p_ebc2_embedding_bags_t3_weight p_ebc2_embedding_bags_t3_weight () {} placeholder p_ebc2_embedding_bags_t4_weight p_ebc2_embedding_bags_t4_weight () {} placeholder features__values features__values () {} placeholder features__weights features__weights () {} placeholder features__lengths features__lengths () {} placeholder features__offsets features__offsets () {} call_function embedding_bag_collection_3 custom.EmbeddingBagCollection_3.default ([features__values, features__weights, None, features__offsets], 2) {} call_function getitem <built-in function getitem> (embedding_bag_collection_3, 0) {} call_function embedding_bag_collection_4 custom.EmbeddingBagCollection_3.default ([features__values, features__weights, None, features__offsets], 2) {} call_function getitem_1 <built-in function getitem> (embedding_bag_collection_4, 0) {} call_function cat aten.cat.default ([getitem, getitem_1], 1) {} output output output ((cat,),) {} ``` Reviewed By: PaulZhang12, shruthign Differential Revision: D56942421 fbshipit-source-id: cb9a5db4e4d94ed1c2f288e2a465110bbc3ddb1a
- Loading branch information