Function at::_transformer_encoder_layer_fwd_out¶
Defined in File Functions.h
Function Documentation¶
-
inline at::Tensor &at::_transformer_encoder_layer_fwd_out(at::Tensor &out, const at::Tensor &src, int64_t embed_dim, int64_t num_heads, const at::Tensor &qkv_weight, const at::Tensor &qkv_bias, const at::Tensor &proj_weight, const at::Tensor &proj_bias, bool use_gelu, bool norm_first, double eps, const at::Tensor &norm_weight_1, const at::Tensor &norm_bias_1, const at::Tensor &norm_weight_2, const at::Tensor &norm_bias_2, const at::Tensor &ffn_weight_1, const at::Tensor &ffn_bias_1, const at::Tensor &ffn_weight_2, const at::Tensor &ffn_bias_2, const ::std::optional<at::Tensor> &mask = {}, ::std::optional<int64_t> mask_type = ::std::nullopt)¶