fanwei-china commented on issue #6931:
URL: https://github.com/apache/incubator-tvm/issues/6931#issuecomment-728783274


    the IRModule is below:
    fn (%bert/embeddings/word_embedding: Tensor[(249079, 384), float32], 
%qt_sent: Tensor[(512, 50), int32], %n_keyword_in: Tensor[(512, 10), int32], 
%bert/embeddings/new_key_imp_embedding: Tensor[(256, 384
      %0 = take(%bert/embeddings/word_embedding, %qt_sent, axis=0);
      %1 = take(%bert/embeddings/word_embedding, %n_keyword_in, axis=0);
      %2 = take(%bert/embeddings/new_key_imp_embedding, %n_keyword_imp, axis=0);
      %3 = add(%1, %2);
      %4 = take(%bert/embeddings/new_key_order_embedding, %n_keyword_occ, 
axis=0);
      %5 = add(%3, %4);
      %6 = take(%bert/embeddings/doc_embedding, %url_sent, axis=0);
       …
       …
       …
     %565 = reshape(%564, newshape=[32256, 384]);
      %566 = cast(%bert/encoder/layer_3/output/LayerNorm/gamma, 
dtype="float16");
      %567 = multiply(%565, %566);
      %568 = cast(%bert/encoder/layer_3/output/LayerNorm/beta, dtype="float16");
      %569 = add(%567, %568);
      %570 = reshape(%569, newshape=[512, 63, 384]);
      %571 = cast(%570, dtype="float32");
      strided_slice(%571, begin=[0, 62, 0], end=[512, 63, 384], strides=[1, 1, 
1])
    }
    // meta data omitted. you can use show_meta_data=True to include meta data
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to