name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
virtual thunk to ncnn::LSTM_x86_avx::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int LSTM_x86_avx::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& bottom_blob = bottom_blobs[0]; int T = bottom_blob.h; int num_directions = direction == 2 ? 2 : 1; Mat hidden; Mat cell; Allocator* hidden_cell_allocator = top_blob...
movq (%rdi), %rax addq -0x40(%rax), %rdi jmp 0x23a752 nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/lstm_x86_avx.cpp
int ncnn::binary_op_no_broadcast<ncnn::binary_op_div>(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static int binary_op_no_broadcast(const Mat& a, const Mat& b, Mat& c, const Option& opt) { Op op; int channels = a.c; int size = a.w * a.h * a.d; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < channels; q++) { const float* ptr = a.channel(q); const fl...
pushq %r14 pushq %rbx movl 0x30(%rdi), %eax imull 0x2c(%rdi), %eax imull 0x34(%rdi), %eax movl 0x38(%rdi), %ecx movq (%rdi), %r8 movq 0x40(%rdi), %r9 movq (%rsi), %r10 movq 0x40(%rsi), %r11 movq 0x40(%rdx), %rbx imulq 0x10(%rdx), %rbx xorl %r14d, %r14d testl %eax, %eax cmovlel %r14d, %eax movq (%rdx), %rdx testl %ecx, ...
/csukuangfj[P]ncnn/src/layer/binaryop.cpp
virtual thunk to ncnn::BinaryOp_x86::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int BinaryOp_x86::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const bool b_is_scalar = bottom_blobs[1].w * bottom_blobs[1].h * bottom_blobs[1].d * bottom_blobs[1].c * bottom_blobs[1].elempack == 1; const bool a_rank_is_lower = bottom_blobs[0].dims < bott...
movq (%rdi), %rax addq -0x40(%rax), %rdi jmp 0x24327c
/csukuangfj[P]ncnn/src/layer/x86/binaryop_x86.cpp
virtual thunk to ncnn::BinaryOp_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int BinaryOp_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { using namespace BinaryOp_x86_avx_functor; if (op_type == Operation_ADD) return binary_op_scalar_inplace<binary_op_add>(bottom_top_blob, b, opt); if (op_type == Operation_SUB) return binary_op_scalar_inplace<binary_op_sub...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x277016 xorl %eax, %eax popq %rcx retq
/csukuangfj[P]ncnn/build_O2/src/layer/x86/binaryop_x86_avx.cpp
int ncnn::binary_op_no_broadcast<ncnn::BinaryOp_x86_avx_functor::binary_op_div>(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static int binary_op_no_broadcast(const Mat& a, const Mat& b, Mat& c, const Option& opt) { Op op; const int channels = a.c; const int size = a.w * a.h * a.d * a.elempack; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < channels; q++) { const float* ptr = a.cha...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx movl 0x30(%rdi), %eax movl 0x38(%rdi), %ecx imull 0x2c(%rdi), %eax imull 0x34(%rdi), %eax imull 0x18(%rdi), %eax xorl %r8d, %r8d testl %ecx, %ecx cmovlel %r8d, %ecx cmpq %rcx, %r8 je 0x277d81 movq 0x10(%rsi), %r9 imulq 0x40(%rsi), %r9 movq 0x10(%rdi), %r10 imulq %r8, %r9 addq...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/binaryop_x86_avx.cpp
int ncnn::binary_op_no_broadcast<ncnn::BinaryOp_x86_avx_functor::binary_op_atan2>(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static int binary_op_no_broadcast(const Mat& a, const Mat& b, Mat& c, const Option& opt) { Op op; const int channels = a.c; const int size = a.w * a.h * a.d * a.elempack; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < channels; q++) { const float* ptr = a.cha...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0xc0, %rsp movq %rdx, 0x28(%rsp) movl 0x30(%rdi), %eax movl 0x38(%rdi), %ecx imull 0x2c(%rdi), %eax imull 0x34(%rdi), %eax movq %rdi, 0x20(%rsp) imull 0x18(%rdi), %eax movl %eax, 0xc(%rsp) xorl %r14d, %r14d testl %...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/binaryop_x86_avx.cpp
ncnn::UnaryOp_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int UnaryOp_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { using namespace UnaryOp_x86_functor; if (op_type == Operation_ABS) return unary_op_inplace<unary_op_abs>(bottom_top_blob, opt); if (op_type == Operation_NEG) return unary_op_inplace<unary_op_neg>(bottom_top_bl...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, 0x8(%rsp) movq (%rdi), %rax movq -0x18(%rax), %rax movl 0xd0(%rdi,%rax), %eax cmpq $0x11, %rax ja 0x27a2ac leaq 0x17c23a(%rip), %rcx # 0x3f5730 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x8(%rsp), %rdx movl...
/csukuangfj[P]ncnn/src/layer/x86/unaryop_x86.cpp
virtual thunk to ncnn::UnaryOp_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int UnaryOp_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { using namespace UnaryOp_x86_avx512_functor; if (op_type == Operation_ABS) return unary_op_inplace<unary_op_abs>(bottom_top_blob, opt); if (op_type == Operation_NEG) return unary_op_inplace<unary_op_neg>...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x27ac00 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/unaryop_x86_avx512.cpp
virtual thunk to ncnn::UnaryOp_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int UnaryOp_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { using namespace UnaryOp_x86_avx_functor; if (op_type == Operation_ABS) return unary_op_inplace<unary_op_abs>(bottom_top_blob, opt); if (op_type == Operation_NEG) return unary_op_inplace<unary_op_neg>(botto...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x2801c8 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/unaryop_x86_avx.cpp
ncnn::UnaryOp_x86_avx_functor::unary_op_exp::func_pack8(float vector[8] const&) const
static NCNN_FORCEINLINE __m256 exp256_ps(__m256 x) { __m256 tmp = _mm256_setzero_ps(), fx; __m256i imm0; __m256 one = *(__m256*)_ps256_1; x = _mm256_min_ps(x, *(__m256*)_ps256_exp_hi); x = _mm256_max_ps(x, *(__m256*)_ps256_exp_lo); /* express exp(x) as exp(g + n*log(2)) */ fx = _mm256_comp...
vbroadcastss 0x16dd93(%rip), %ymm0 # 0x3ef118 vminps (%rsi), %ymm0, %ymm0 vbroadcastss 0x16dd8a(%rip), %ymm1 # 0x3ef11c vmaxps %ymm1, %ymm0, %ymm0 vbroadcastss 0x16dd85(%rip), %ymm1 # 0x3ef124 vmulps %ymm1, %ymm0, %ymm1 vbroadcastss 0x16dd74(%rip), %ymm2 # 0x3ef120 vaddps %ymm2, %ymm1, %ymm1 vroundps $0x1, %ymm1, %ymm3...
/csukuangfj[P]ncnn/src/layer/x86/avx_mathfun.h
ncnn::UnaryOp_x86_avx_functor::unary_op_log::func_pack8(float vector[8] const&) const
static NCNN_FORCEINLINE __m256 log256_ps(__m256 x) { __m256i imm0; __m256 one = *(__m256*)_ps256_1; //__m256 invalid_mask = _mm256_cmple_ps(x, _mm256_setzero_ps()); __m256 invalid_mask = _mm256_cmp_ps(x, _mm256_setzero_ps(), _CMP_LE_OS); x = _mm256_max_ps(x, *(__m256*)_ps256_min_norm_pos); /* cut ...
vbroadcastss 0x16dbef(%rip), %ymm0 # 0x3ef144 vmaxps (%rsi), %ymm0, %ymm0 vpsrld $0x17, %xmm0, %xmm1 vextractf128 $0x1, %ymm0, %xmm2 vpsrld $0x17, %xmm2, %xmm2 vbroadcastss 0x16dbd6(%rip), %ymm3 # 0x3ef148 vbroadcastss 0x16dba5(%rip), %ymm4 # 0x3ef120 vandps %ymm3, %ymm0, %ymm0 vorps %ymm4, %ymm0, %ymm0 vbroadcastss 0x...
/csukuangfj[P]ncnn/src/layer/x86/avx_mathfun.h
ncnn::ConvolutionDepthWise::load_param(ncnn::ParamDict const&)
int ConvolutionDepthWise::load_param(const ParamDict& pd) { num_output = pd.get(0, 0); kernel_w = pd.get(1, 0); kernel_h = pd.get(11, kernel_w); dilation_w = pd.get(2, 1); dilation_h = pd.get(12, dilation_w); stride_w = pd.get(3, 1); stride_h = pd.get(13, stride_w); pad_left = pd.get(4, ...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x6eb82 movl %eax, 0xd0(%rbx) pushq $0x1 popq %rbp movq %r14, %rdi movl %ebp, %esi xorl %edx, %edx callq 0x6eb82 movl %eax, 0xd4(%rbx) pushq $0xb popq %rsi movq %r14, %rdi m...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise.cpp
ncnn::ConvolutionDepthWise::make_padding(ncnn::Mat const&, ncnn::Mat&, int, int, ncnn::Option const&) const
void ConvolutionDepthWise::make_padding(const Mat& bottom_blob, Mat& bottom_blob_bordered, int _kernel_w, int _kernel_h, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; const int kernel_extent_w = dilation_w * (_kernel_w - 1) + 1; const int kernel_extent_h = dilation_h * (_kern...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r9, %r13 movl %r8d, %r12d movl %ecx, %ebp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x2c(%rsi), %eax movl 0x30(%rsi), %r10d decl %ebp imull 0xdc(%rdi), %ebp decl %r12d imull 0xe0(%rdi), %r12d cmpq %rsi, %rdx je 0x285f1c ...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise.cpp
ncnn::ConvolutionDepthWise_x86::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { #if NCNN_INT8 if (opt.use_int8_inference && int8_scale_term) { return forward_int8_x86(bottom_blob, top_blob, opt); } #endif int w = bottom_blob.w; int h = bottom_blob.h; int channels...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2c8, %rsp # imm = 0x2C8 movq %rcx, %r14 movq (%rdi), %rax movq -0x18(%rax), %rcx cmpb $0x1, 0x1e(%r14) jne 0x287a15 cmpl $0x0, 0x10c(%rdi,%rcx) je 0x287a15 movq %r14, %rcx addq $0x2c8, %rsp # imm = 0x2C8 popq %rbx popq %r12 ...
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_x86.cpp
virtual thunk to ncnn::ConvolutionDepthWise_x86::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int ConvolutionDepthWise_x86::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& bottom_blob = bottom_blobs[0]; const Mat& _weight_data = bottom_blobs[1]; Mat& top_blob = top_blobs[0]; const int _kernel_w = _weight_data.w; const int _ker...
movq (%rdi), %rax addq -0x40(%rax), %rdi jmp 0x28d2de
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_x86.cpp
ncnn::ConvolutionDepthWise_x86_avx512::destroy_pipeline(ncnn::Option const&)
int ConvolutionDepthWise_x86_avx512::destroy_pipeline(const Option& opt) { if (activation) { activation->destroy_pipeline(opt); delete activation; activation = 0; } for (int i = 0; i < (int)group_ops.size(); i++) { group_ops[i]->destroy_pipeline(opt); delete ...
pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rdi), %rdi testq %rdi, %rdi je 0x28f491 movq (%rdi), %rax movq %r14, %rsi callq *0x28(%rax) movq 0x8(%rbx), %rdi testq %rdi, %rdi je 0x28f48c movq (%rdi), %rax callq *0x8(%rax) andq $0x0, 0x8(%rbx) xorl %r15d, %r15d movq 0x10(%rbx), %rax movq 0x...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_avx512.cpp
ncnn::ConvolutionDepthWise_x86_avx512::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise_x86_avx512::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { #if NCNN_INT8 if (opt.use_int8_inference && int8_scale_term) { return forward_int8_x86(bottom_blob, top_blob, opt); } #endif int w = bottom_blob.w; int h = bottom_blob.h; int c...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x238, %rsp # imm = 0x238 movq %rdi, %r14 movq (%rdi), %rax movq -0x18(%rax), %rdi movq %rcx, 0x48(%rsp) cmpb $0x1, 0x1e(%rcx) jne 0x28f545 cmpl $0x0, 0x10c(%r14,%rdi) je 0x28f545 movq %r14, %rdi movq 0x48(%rsp), %rcx addq $0x238, %rsp ...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_avx512.cpp
ncnn::ConvolutionDepthWise_x86_avx512::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int ConvolutionDepthWise_x86_avx512::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& bottom_blob = bottom_blobs[0]; const Mat& _weight_data = bottom_blobs[1]; Mat& top_blob = top_blobs[0]; const int _kernel_w = _weight_data.w; const i...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x168, %rsp # imm = 0x168 movq %rsi, %rbp movq %rdi, %r13 movq (%rsi), %r14 leaq 0x48(%r14), %rdi movq (%rdx), %rax movq %rax, 0xb8(%rsp) movl 0x60(%r14), %ebx movl 0x74(%r14), %eax movl %eax, 0x1c(%rsp) movl 0x78(%r14), %eax movl %eax, ...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_avx512.cpp
ncnn::ConvolutionDepthWise_x86_fma::create_group_ops(ncnn::Option const&)
int ConvolutionDepthWise_x86_fma::create_group_ops(const Option& opt) { // create Convolution op for each group const int maxk = kernel_w * kernel_h; int channels = (weight_data_size / group) / maxk / (num_output / group) * group; for (int i = 0; i < (int)group_ops.size(); i++) delete group_ops...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x278, %rsp # imm = 0x278 movq %rsi, 0x250(%rsp) movq %rdi, %r14 movq (%rdi), %rax movq -0x18(%rax), %rdx movl 0xd0(%rdi,%rdx), %ecx movl 0xd8(%rdi,%rdx), %ebp imull 0xd4(%rdi,%rdx), %ebp movl 0x104(%rdi,%rdx), %eax movl 0x108(%rdi,%rdx)...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_fma.cpp
virtual thunk to ncnn::ConvolutionDepthWise_x86_fma::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise_x86_fma::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { #if NCNN_INT8 if (opt.use_int8_inference && int8_scale_term) { return forward_int8_x86(bottom_blob, top_blob, opt); } #endif int w = bottom_blob.w; int h = bottom_blob.h; int chan...
movq (%rdi), %rax addq -0x48(%rax), %rdi jmp 0x299222
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_fma.cpp
virtual thunk to ncnn::ConvolutionDepthWise_x86_avx::create_pipeline(ncnn::Option const&)
int ConvolutionDepthWise_x86_avx::create_pipeline(const Option& opt) { if (dynamic_weight) return 0; activation = create_activation_layer(activation_type, activation_params, opt); #if NCNN_INT8 if (opt.use_int8_inference && weight_data.elemsize == (size_t)1u) { return create_pipeline_i...
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x2a04de xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_avx.cpp
virtual thunk to ncnn::ConvolutionDepthWise_x86_avx::destroy_pipeline(ncnn::Option const&)
int ConvolutionDepthWise_x86_avx::destroy_pipeline(const Option& opt) { if (activation) { activation->destroy_pipeline(opt); delete activation; activation = 0; } for (int i = 0; i < (int)group_ops.size(); i++) { group_ops[i]->destroy_pipeline(opt); delete gro...
pushq %rax movq (%rdi), %rax addq -0x38(%rax), %rdi callq 0x2a1d5c xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_avx.cpp
ncnn::ConvolutionDepthWise_x86_avx::forward_int8_x86(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise_x86_avx::forward_int8_x86(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int channels = bottom_blob.c; int elempack = bottom_blob.elempack; int elembits = bottom_blob.elembits(); const int kernel_extent_w...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x318, %rsp # imm = 0x318 movq %rcx, 0x30(%rsp) movq %rdx, 0x20(%rsp) movq %rsi, %r15 movl 0x38(%rsi), %ecx movl 0x18(%rsi), %r12d movq 0x10(%rsi), %rsi testl %r12d, %r12d je 0x2a6d23 leal (,%rsi,8), %eax cltd idivl %r12d cmpl $0x8, %eax...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_avx.cpp
virtual thunk to ncnn::ConvolutionDepthWise_x86_avx::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise_x86_avx::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { #if NCNN_INT8 if (opt.use_int8_inference && int8_scale_term) { return forward_int8_x86(bottom_blob, top_blob, opt); } #endif int w = bottom_blob.w; int h = bottom_blob.h; int chan...
movq (%rdi), %rax addq -0x48(%rax), %rdi jmp 0x2a1df2
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolutiondepthwise_x86_avx.cpp
ncnn::Padding::load_model(ncnn::ModelBin const&)
int Padding::load_model(const ModelBin& mb) { if (per_channel_pad_data_size) { per_channel_pad_data = mb.load(per_channel_pad_data_size, 1); } return 0; }
pushq %r14 pushq %rbx subq $0x48, %rsp movl 0xf0(%rdi), %edx testl %edx, %edx je 0x2aa002 movq %rdi, %rbx movq (%rsi), %rax movq %rsp, %r14 pushq $0x1 popq %rcx movq %r14, %rdi callq *0x10(%rax) leaq 0xf8(%rbx), %rcx movq 0x8(%r14), %rax cmpq %r14, %rcx je 0x2a9fda testq %rax, %rax je 0x2a9f4b lock incl (%rax) movq 0x1...
/csukuangfj[P]ncnn/src/layer/padding.cpp
void ncnn::copy_make_border_image<float>(ncnn::Mat const&, ncnn::Mat&, int, int, int, float)
static void copy_make_border_image(const Mat& src, Mat& dst, int top, int left, int type, T v) { int w = dst.w; int h = dst.h; const T* ptr = src; T* outptr = dst; if (type == 0) { int y = 0; // fill top for (; y < top; y++) { int x = 0; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movslq 0x2c(%rsi), %rbx movl 0x30(%rsi), %eax movl %eax, 0x4c(%rsp) movq (%rdi), %r12 movq (%rsi), %rbp movq %rcx, 0x30(%rsp) movslq %ecx, %rax movq %rax, 0x18(%rsp) testl %r8d, %r8d movq %rdi, 0x40(%rsp) movl %edx, 0xc(%rsp) jne 0x2abc3...
/csukuangfj[P]ncnn/src/layer/padding.cpp
ncnn::Padding_x86::forward_int8(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Padding_x86::forward_int8(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; int dims = bottom_blob.dims; size_t elemsize = bottom_blob.elemsize; int elempack = bottom_blob.e...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x118, %rsp # imm = 0x118 movq %rcx, %r12 movq %rdx, %rbx movq %rsi, %rax movq %rdi, %r13 movl 0x2c(%rsi), %esi movl 0x30(%rax), %edx movl 0x34(%rax), %ecx movl %ecx, 0x18(%rsp) movl 0x38(%rax), %ebp movq 0x10(%rax), %r9 movl 0x18(%rax),...
/csukuangfj[P]ncnn/src/layer/x86/padding_x86.cpp
virtual thunk to ncnn::Padding_x86::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Padding_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { if (top == 0 && bottom == 0 && left == 0 && right == 0 && front == 0 && behind == 0) { top_blob = bottom_blob; return 0; } int elembits = bottom_blob.elembits(); if (elembits == 8) re...
movq (%rdi), %rax addq -0x48(%rax), %rdi jmp 0x2ac290
/csukuangfj[P]ncnn/src/layer/x86/padding_x86.cpp
ncnn::Padding_x86_fma::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Padding_x86_fma::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { if (top == 0 && bottom == 0 && left == 0 && right == 0 && front == 0 && behind == 0) { top_blob = bottom_blob; return 0; } int elembits = bottom_blob.elembits(); if (elembits == 8) ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movq %rcx, %rbp movq %rdx, 0x8(%rsp) movq %rsi, %r14 movq (%rdi), %rax movq -0x18(%rax), %r11 movl 0xd0(%rdi,%r11), %r10d testl %r10d, %r10d jne 0x2b1c8b cmpl $0x0, 0xd4(%rdi,%r11) jne 0x2b1c8b cmpl $0x0, 0xd8(%rdi,%r11) jne 0x2b1c8b cmp...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/padding_x86_fma.cpp
ncnn::Padding_x86_fma::forward_int8(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Padding_x86_fma::forward_int8(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; int dims = bottom_blob.dims; size_t elemsize = bottom_blob.elemsize; int elempack = bottom_bl...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movq %rcx, %r12 movq %rdx, %rbx movq %rdi, %r14 movl 0x38(%rsi), %r15d movq 0x10(%rsi), %r9 movl 0x18(%rsi), %edi movq %rsi, 0x28(%rsp) vmovdqu 0x28(%rsi), %xmm0 cmpl $0x8, %edi jne 0x2b44cc vmovd %xmm0, %eax de...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/padding_x86_fma.cpp
ncnn::ExpandDims::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ExpandDims::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int channels = bottom_blob.c; int dims = bottom_blob.dims; bool _expand_w = false; bool _expand_h = false; bool _expand_d = false; bool _expand_c = fal...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rcx, %r14 movq %rdx, 0x8(%rsp) movq %rsi, 0x58(%rsp) movl 0x28(%rsi), %r15d movq 0xe0(%rdi), %rax movq %rax, 0x70(%rsp) testq %rax, %rax je 0x2b9f4c movslq 0x118(%rdi), %rcx imulq 0x120(%rdi), %rcx testq %rcx, %rcx je 0x2b9f4c movq...
/csukuangfj[P]ncnn/src/layer/expanddims.cpp
ncnn::Normalize::load_param(ncnn::ParamDict const&)
int Normalize::load_param(const ParamDict& pd) { across_spatial = pd.get(0, 0); across_channel = pd.get(4, 1); channel_shared = pd.get(1, 0); eps = pd.get(2, 0.0001f); eps_mode = pd.get(9, 0); scale_data_size = pd.get(3, 0); return 0; }
pushq %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x6eb82 movl %eax, 0xd0(%rbx) pushq $0x4 popq %rsi pushq $0x1 popq %rbp movq %r14, %rdi movl %ebp, %edx callq 0x6eb82 movl %eax, 0xd4(%rbx) movq %r14, %rdi movl %ebp, %esi xorl %edx, %edx callq 0x6eb82...
/csukuangfj[P]ncnn/src/layer/normalize.cpp
ncnn::cubic_coeffs(int, int, int*, float*, int)
static void cubic_coeffs(int w, int outw, int* xofs, float* alpha, int align_corner) { double scale = (double)w / outw; if (align_corner) { scale = (double)(w - 1) / (outw - 1); } for (int dx = 0; dx < outw; dx++) { float fx = (float)((dx + 0.5) * scale - 0.5); if (align...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movl %r8d, %ebx movq %rcx, 0x10(%rsp) movq %rdx, %r15 movl %esi, %r12d testl %r8d, %r8d je 0x2c1b1c leal -0x1(%rdi), %eax movl %eax, 0x4(%rsp) cvtsi2sd %eax, %xmm1 leal -0x1(%r12), %eax cvtsi2sd %eax, %xmm0 divsd %xmm0, %xmm1 movsd %xmm1...
/csukuangfj[P]ncnn/src/layer/interp.cpp
ncnn::linear_coeffs(int, int, int*, float*, int)
static void linear_coeffs(int w, int outw, int* xofs, float* alpha, int align_corner) { double scale = (double)w / outw; if (align_corner) { scale = (double)(w - 1) / (outw - 1); } for (int dx = 0; dx < outw; dx++) { float fx = (float)((dx + 0.5) * scale - 0.5); if (alig...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r8d, %ebx movq %rcx, %r14 movq %rdx, 0x10(%rsp) movl %esi, %r12d movl %edi, %r13d testl %r8d, %r8d je 0x2c4498 leal -0x1(%r13), %ebp cvtsi2sd %ebp, %xmm1 leal -0x1(%r12), %eax cvtsi2sd %eax, %xmm0 divsd %xmm0, %xmm1 movsd %xmm1, (%...
/csukuangfj[P]ncnn/src/layer/x86/interp_bilinear.h
ncnn::DeconvolutionDepthWise::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int DeconvolutionDepthWise::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; size_t elemsize = bottom_blob.elemsize; const int kernel_extent_w = dilation_w * (kernel_w - 1) + 1; const int kernel_extent_h = dilation_h * (kernel_h...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x198, %rsp # imm = 0x198 movl 0x2c(%rsi), %r14d movl 0x30(%rsi), %ebp movl 0xd4(%rdi), %ebx decl %ebx imull 0xdc(%rdi), %ebx movq %rsi, 0x20(%rsp) movq 0x10(%rsi), %r8 decl %r14d imull 0xe4(%rdi), %r14d movl 0xd8(%rdi), %r12d decl %r12d...
/csukuangfj[P]ncnn/src/layer/deconvolutiondepthwise.cpp
virtual thunk to ncnn::DeconvolutionDepthWise_x86::create_pipeline(ncnn::Option const&)
int DeconvolutionDepthWise_x86::create_pipeline(const Option& opt) { const int maxk = kernel_w * kernel_h; int channels = (weight_data_size / group) / maxk / (num_output / group) * group; // depth-wise if (channels == group && group == num_output) { int elempack = 1; #if __SSE2__ if...
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x2d2358 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/src/layer/x86/deconvolutiondepthwise_x86.cpp
ncnn::DeconvolutionDepthWise_x86::destroy_pipeline(ncnn::Option const&)
int DeconvolutionDepthWise_x86::destroy_pipeline(const Option& opt) { for (int i = 0; i < (int)group_ops.size(); i++) { group_ops[i]->destroy_pipeline(opt); delete group_ops[i]; } group_ops.clear(); return 0; }
pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx xorl %r15d, %r15d movq 0x8(%rbx), %rax movq 0x10(%rbx), %rcx movq %rcx, %rdx subq %rax, %rdx shrq $0x3, %rdx movslq %edx, %rdx cmpq %rdx, %r15 jge 0x2d3075 movq (%rax,%r15,8), %rdi movq (%rdi), %rax movq %r14, %rsi callq *0x28(%rax) movq 0x8(%rbx), %rax m...
/csukuangfj[P]ncnn/src/layer/x86/deconvolutiondepthwise_x86.cpp
ncnn::DeconvolutionDepthWise_x86_avx512::create_group_ops(ncnn::Option const&)
int DeconvolutionDepthWise_x86_avx512::create_group_ops(const Option& opt) { // create Deconvolution op for each group const int maxk = kernel_w * kernel_h; int channels = (weight_data_size / group) / maxk / (num_output / group) * group; for (int i = 0; i < (int)group_ops.size(); i++) delete gr...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x158, %rsp # imm = 0x158 movq %rsi, 0x120(%rsp) movq %rdi, %r14 movq (%rdi), %rax movq -0x18(%rax), %rdx movl 0xd0(%rdi,%rdx), %ecx movl 0xd8(%rdi,%rdx), %ebp imull 0xd4(%rdi,%rdx), %ebp movl 0x110(%rdi,%rdx), %eax movl 0x114(%rdi,%rdx)...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/deconvolutiondepthwise_x86_avx512.cpp
virtual thunk to ncnn::DeconvolutionDepthWise_x86_avx512::create_pipeline(ncnn::Option const&)
int DeconvolutionDepthWise_x86_avx512::create_pipeline(const Option& opt) { const int maxk = kernel_w * kernel_h; int channels = (weight_data_size / group) / maxk / (num_output / group) * group; // depth-wise if (channels == group && group == num_output) { int elempack = 1; #if __SSE2__ ...
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x2d4638 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/deconvolutiondepthwise_x86_avx512.cpp
virtual thunk to ncnn::DeconvolutionDepthWise_x86_avx::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int DeconvolutionDepthWise_x86_avx::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { // convolv with NxN kernel // value = value + bias int w = bottom_blob.w; int h = bottom_blob.h; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; int elempack =...
movq (%rdi), %rax addq -0x48(%rax), %rdi jmp 0x2db008 nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/deconvolutiondepthwise_x86_avx.cpp
ncnn::InstanceNorm::load_model(ncnn::ModelBin const&)
int InstanceNorm::load_model(const ModelBin& mb) { if (affine == 0) return 0; gamma_data = mb.load(channels, 1); if (gamma_data.empty()) return -100; beta_data = mb.load(channels, 1); if (beta_data.empty()) return -100; return 0; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp xorl %ebx, %ebx cmpl $0x0, 0xd8(%rdi) je 0x2dd15e movq %rsi, %r15 movq %rdi, %r14 movl 0xd0(%rdi), %edx movq (%rsi), %rax movq %rsp, %r12 pushq $0x1 popq %rcx movq %r12, %rdi callq *0x10(%rax) leaq 0xe0(%r14), %r13 movq 0x8(%r12), %rax c...
/csukuangfj[P]ncnn/src/layer/instancenorm.cpp
virtual thunk to ncnn::Clip_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Clip_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp parallel fo...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x2dd46c xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/src/layer/x86/clip_x86.cpp
virtual thunk to ncnn::Clip_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Clip_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp para...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x2dd5b8 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/clip_x86_avx512.cpp
virtual thunk to ncnn::Clip_x86_fma::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Clip_x86_fma::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp paralle...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x2dd74c xorl %eax, %eax popq %rcx retq nopl (%rax)
/csukuangfj[P]ncnn/build_O2/src/layer/x86/clip_x86_fma.cpp
ncnn::Reorg::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Reorg::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; int outw = w / stride; int outh = h / stride; int outc = channels * stride * stride; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdx, %r14 movq %rsi, %rbx movl 0x2c(%rsi), %eax movl 0x30(%rsi), %esi movl 0x38(%rbx), %r9d movq 0x10(%rbx), %r8 movq %rdi, (%rsp) movl 0xd0(%rdi), %edi cltd idivl %edi movl %eax, %r12d movl %esi, %eax cltd idivl %edi movl %eax, %r...
/csukuangfj[P]ncnn/src/layer/reorg.cpp
ncnn::YoloDetectionOutput::create_pipeline(ncnn::Option const&)
int YoloDetectionOutput::create_pipeline(const Option& opt) { { softmax = ncnn::create_layer(ncnn::LayerType::Softmax); ncnn::ParamDict pd; pd.set(0, 0); // axis softmax->load_param(pd); softmax->create_pipeline(opt); } return 0; }
pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rsi, %rbx movq %rdi, %r14 pushq $0x20 popq %rdi callq 0x7559b movq %rax, 0x128(%r14) movq %rsp, %r15 movq %r15, %rdi callq 0x6e824 movq %r15, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x6ec16 movq 0x128(%r14), %rdi movq (%rdi), %rax movq %rsp, %rsi callq *0x10(%r...
/csukuangfj[P]ncnn/src/layer/yolodetectionoutput.cpp
ncnn::Dequantize::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Dequantize::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int dims = bottom_blob.dims; if (dims == 1) { int w = bottom_blob.w; top_blob.create(w, (size_t)4u, opt.blob_allocator); if (top_blob.empty()) return -100; const int* intp...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r13 movq %rsi, %r12 movq %rdi, %rbx movl 0x28(%rsi), %edx cmpl $0x3, %edx je 0x2e669d cmpl $0x2, %edx je 0x2e65b5 xorl %eax, %eax cmpl $0x1, %edx jne 0x2e6967 movl 0x2c(%r12), %r14d movq 0x8(%rcx), %rcx pushq $0x4 popq %rdx movq %r...
/csukuangfj[P]ncnn/src/layer/dequantize.cpp
virtual thunk to ncnn::Yolov3DetectionOutput_x86_avx512::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int Yolov3DetectionOutput_x86_avx512::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { // gather all box std::vector<BBoxRect> all_bbox_rects; for (size_t b = 0; b < bottom_blobs.size(); b++) { std::vector<std::vector<BBoxRect> > all_box_bbox...
movq (%rdi), %rax addq -0x40(%rax), %rdi jmp 0x2eda9c
/csukuangfj[P]ncnn/build_O2/src/layer/x86/yolov3detectionoutput_x86_avx512.cpp
ncnn::ROIAlign_x86_fma::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int ROIAlign_x86_fma::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& bottom_blob = bottom_blobs[0]; const int width = bottom_blob.w; const int height = bottom_blob.h; const size_t elemsize = bottom_blob.elemsize; const int channels = ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rdi, %r15 movq (%rsi), %rax movl 0x2c(%rax), %ebp movl 0x30(%rax), %r13d movq 0x10(%rax), %r8 movq %rax, 0x20(%rsp) movl 0x38(%rax), %r10d movq (%rdx), %r14 movq (%rdi), %rax movq -0x18(%rax), %rax movl 0xd0(%rdi,%rax), %esi movl 0...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/roialign_x86_fma.cpp
ncnn::float32_to_int8(float)
signed char float32_to_int8(float value) { float tmp; if (value >= 0.f) tmp = value + 0.5f; else tmp = value - 0.5f; if (tmp > 127) return 127; if (tmp < -128) return -128; return static_cast<signed char>(tmp); }
xorps %xmm1, %xmm1 xorl %eax, %eax ucomiss %xmm1, %xmm0 setb %al leaq 0xb2bcb(%rip), %rcx # 0x3f89f8 addss (%rcx,%rax,4), %xmm0 movb $0x7f, %al ucomiss 0xb2bc5(%rip), %xmm0 # 0x3f8a00 ja 0x345e4c movb $-0x80, %al ucomiss 0xb2bbe(%rip), %xmm0 # 0x3f8a04 jb 0x345e4c cvttss2si %xmm0, %eax retq nop
/csukuangfj[P]ncnn/src/layer/cast.cpp
ncnn::Cast_x86::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Cast_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { if (type_from == type_to) { top_blob = bottom_blob; return 0; } int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; int dims = bottom_bl...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rcx, %rbp movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %rdx movq (%rdi), %rax movq -0x18(%rax), %rdi movl 0xd0(%rdx,%rdi), %eax movl 0xd4(%rdx,%rdi), %ecx cmpl %ecx, %eax jne 0x3463cb xorl %ebp, %ebp cmpq %rbx, %r14 je 0x3466bf movq ...
/csukuangfj[P]ncnn/src/layer/x86/cast_x86.cpp
ncnn::Cast_x86_fma::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Cast_x86_fma::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { if (type_from == type_to) { top_blob = bottom_blob; return 0; } int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; int dims = botto...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %r10 movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rdx movq (%rdi), %rax movq -0x18(%rax), %rdi movl 0xd0(%rdx,%rdi), %eax movl 0xd4(%rdx,%rdi), %ecx cmpl %ecx, %eax jne 0x34729f xorl %r15d, %r15d cmpq %r14, %r12 je 0x3477d4 mov...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/cast_x86_fma.cpp
ncnn::cast_fp32_to_bf16_sse_avx2(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
void cast_bf16_to_fp32_sse_avx2(const Mat& bottom_blob, Mat& top_blob, const Option& opt) { cast_bf16_to_fp32_sse(bottom_blob, top_blob, opt); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movl 0x30(%rdi), %eax movl 0x38(%rdi), %ecx imull 0x2c(%rdi), %eax imull 0x34(%rdi), %eax imull 0x18(%rdi), %eax xorl %edx, %edx testl %ecx, %ecx cmovlel %edx, %ecx movq %rcx, -0x8(%rsp) cmpq -0x8(%rsp), %rdx je 0x34848f movq (%rdi), %r8 movq 0x10(%rdi),...
/csukuangfj[P]ncnn/src/layer/x86/cast_x86_avx2.cpp
ncnn::HardSigmoid::load_param(ncnn::ParamDict const&)
int HardSigmoid::load_param(const ParamDict& pd) { // tensorflow uses alpha,beta = 0.2, 0.5 // pytorch uses alpha,beta = 1/6, 0.5 alpha = pd.get(0, 0.2f); beta = pd.get(1, 0.5f); lower = -beta / alpha; upper = (1.f / alpha) + lower; return 0; }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movss 0xae01e(%rip), %xmm0 # 0x3f6814 movq %rsi, %rdi xorl %esi, %esi callq 0x6eb9c movss %xmm0, 0xd0(%rbx) pushq $0x1 popq %rsi movss 0xa690d(%rip), %xmm0 # 0x3ef120 movq %r14, %rdi callq 0x6eb9c movss %xmm0, 0xd4(%rbx) xorps 0xa38c6(%rip), %xmm0 ...
/csukuangfj[P]ncnn/src/layer/hardsigmoid.cpp
ncnn::HardSigmoid::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSigmoid::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int channels = bottom_top_blob.c; int size = w * h; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < channels; q++) { floa...
movl 0x30(%rsi), %eax movl 0x38(%rsi), %ecx imull 0x2c(%rsi), %eax xorl %edx, %edx testl %eax, %eax cmovlel %edx, %eax movq (%rsi), %r8 testl %ecx, %ecx cmovlel %edx, %ecx movq 0x40(%rsi), %r9 imulq 0x10(%rsi), %r9 movss 0xa378e(%rip), %xmm0 # 0x3ec014 cmpq %rcx, %rdx je 0x3488d6 xorl %esi, %esi cmpq %rsi, %rax je 0...
/csukuangfj[P]ncnn/src/layer/hardsigmoid.cpp
ncnn::HardSigmoid_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSigmoid_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp para...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl 0x30(%rsi), %eax movl 0x38(%rsi), %ecx imull 0x2c(%rsi), %eax imull 0x34(%rsi), %eax imull 0x18(%rsi), %eax xorl %edx, %edx testl %ecx, %ecx cmovlel %edx, %ecx xorps %xmm0, %xmm0 movaps 0xa6639(%rip), %xmm1 # 0x3eefa0 movss 0xa36a5(%rip), %xmm2 # 0x3ec01...
/csukuangfj[P]ncnn/src/layer/x86/hardsigmoid_x86.cpp
virtual thunk to ncnn::HardSigmoid_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSigmoid_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma o...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x348aa8 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/hardsigmoid_x86_avx512.cpp
virtual thunk to ncnn::HardSigmoid_x86_fma::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSigmoid_x86_fma::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp ...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x348c8c xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/hardsigmoid_x86_fma.cpp
virtual thunk to ncnn::HardSigmoid_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSigmoid_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp ...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x348e4c xorl %eax, %eax popq %rcx retq nopl (%rax)
/csukuangfj[P]ncnn/build_O2/src/layer/x86/hardsigmoid_x86_avx.cpp
ncnn::HardSwish_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSwish_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp...
movl 0x30(%rsi), %eax imull 0x2c(%rsi), %eax imull 0x34(%rsi), %eax movl 0x38(%rsi), %ecx imull 0x18(%rsi), %eax xorl %edx, %edx testl %ecx, %ecx cmovlel %edx, %ecx vxorps %xmm0, %xmm0, %xmm0 vbroadcastss 0xa2c15(%rip), %zmm1 # 0x3ec014 vbroadcastss 0xa2c0c(%rip), %ymm2 # 0x3ec014 vxorps %xmm3, %xmm3, %xmm3 vxorps %xmm...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/hardswish_x86_avx512.cpp
virtual thunk to ncnn::HardSwish_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSwish_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x3493d8 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/hardswish_x86_avx512.cpp
virtual thunk to ncnn::HardSwish_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSwish_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp pa...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x349780 xorl %eax, %eax popq %rcx retq nopl (%rax)
/csukuangfj[P]ncnn/build_O2/src/layer/x86/hardswish_x86_avx.cpp
ncnn::Mish_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Mish_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int size = w * h * d; #if __SSE2__ int elempack = bottom_top_blob.elempack; #if __AVX__ #if __AVX...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movl 0x18(%rsi), %eax movl 0x30(%rsi), %ebp imull 0x2c(%rsi), %ebp movl 0x38(%rsi), %r14d imull 0x34(%rsi), %ebp cmpl $0x8, %eax je 0x34c25b cmpl $0x4, %eax jne 0x34c5ce xorl %eax, %eax testl %ebp, %ebp cmovlel %eax, %ebp...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/mish_x86_avx.cpp
ncnn::Swish::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Swish::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int size = w * h * d; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < chan...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl 0x30(%rsi), %ebx imull 0x2c(%rsi), %ebx movl 0x38(%rsi), %r14d imull 0x34(%rsi), %ebx movq (%rsi), %r15 movq 0x40(%rsi), %r12 imulq 0x10(%rsi), %r12 xorl %r13d, %r13d testl %ebx, %ebx cmovlel %r13d, %ebx testl %r14d, %r14d cmovlel %...
/csukuangfj[P]ncnn/src/layer/swish.cpp
ncnn::Swish_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Swish_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp parallel f...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x30(%rsi), %ebp imull 0x2c(%rsi), %ebp imull 0x34(%rsi), %ebp movl 0x38(%rsi), %r14d imull 0x18(%rsi), %ebp xorl %r15d, %r15d testl %r14d, %r14d cmovlel %r15d, %r14d movaps 0x9f193(%rip), %xmm5 # 0x3ec0f0 cmpq %r...
/csukuangfj[P]ncnn/src/layer/x86/swish_x86.cpp
ncnn::Swish_x86_fma::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Swish_x86_fma::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp parall...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movl 0x30(%rsi), %ebp movl 0x38(%rsi), %r14d imull 0x2c(%rsi), %ebp imull 0x34(%rsi), %ebp imull 0x18(%rsi), %ebp xorl %r15d, %r15d testl %r14d, %r14d cmovlel %r15d, %r14d vbroadcastss 0x9ea89(%rip), %xmm8 # 0x3ec014 vbro...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/swish_x86_fma.cpp
virtual thunk to ncnn::Swish_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Swish_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp parall...
pushq %rax callq 0x34d8a0 xorl %eax, %eax popq %rcx retq
/csukuangfj[P]ncnn/build_O2/src/layer/x86/swish_x86_avx.cpp
ncnn::Gemm::load_model(ncnn::ModelBin const&)
int Gemm::load_model(const ModelBin& mb) { if (constantA == 1) { if (transA == 0) A_data = mb.load(constantK, constantM, 0); else A_data = mb.load(constantM, constantK, 0); if (A_data.empty()) return -100; } if (constantB == 1) { i...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r15 movq %rdi, %r14 cmpl $0x1, 0xe0(%rdi) pushq $-0x64 popq %rbx jne 0x34e0fe leaq 0x118(%r14), %r13 cmpl $0x0, 0xd8(%r14) je 0x34df3e movl 0xec(%r14), %edx movl 0xf4(%r14), %ecx movq (%r15), %rax leaq 0x8(%rsp), %r12 movq %r12, %rdi mo...
/csukuangfj[P]ncnn/src/layer/gemm.cpp
ncnn::pack_A_tile(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void pack_A_tile(const Mat& A, Mat& AT, int i, int max_ii, int k, int max_kk) { const int elempack = A.elempack; const int A_hstep = A.dims == 3 ? (int)A.cstep : A.w; float* pp = AT; int ii = 0; #if __SSE2__ #if __AVX__ #if __AVX512F__ for (; ii + 15 < max_ii; ii += 16) { if (el...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx leaq 0x2c(%rdi), %rax leaq 0x40(%rdi), %r10 cmpl $0x3, 0x28(%rdi) cmoveq %r10, %rax movslq (%rax), %r13 movq (%rsi), %r11 leal (,%r8,4), %eax cltq movq %rax, -0x18(%rsp) movslq %r8d, %rsi xorl %r8d, %r8d testl %r9d, %r9d movl $0x0, %eax cmovgl %r9d, %eax...
/csukuangfj[P]ncnn/src/layer/x86/gemm_x86.cpp
ncnn::Gemm_x86_avx512::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int Gemm_x86_avx512::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { int M; int N; if (constantA && constantB) { M = constantM; N = constantN; } else if (constantA) { const Mat& B = bottom_blobs[0]; M = con...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2d8, %rsp # imm = 0x2D8 movq %rcx, %rbp movq %rdx, %rbx movq %rdi, %r15 movq (%rdi), %rax movq -0x18(%rax), %rcx cmpl $0x0, 0xe0(%rdi,%rcx) movl 0xe4(%rdi,%rcx), %r8d je 0x35ad68 testl %r8d, %r8d je 0x35ad82 movl 0xec(%r15,%rcx), %r12d...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/gemm_x86_avx512.cpp
ncnn::Gemm_x86_fma::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int Gemm_x86_fma::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { int M; int N; if (constantA && constantB) { M = constantM; N = constantN; } else if (constantA) { const Mat& B = bottom_blobs[0]; M = consta...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2d8, %rsp # imm = 0x2D8 movq %rcx, %rbp movq %rdx, %rbx movq %rdi, %r15 movq (%rdi), %rax movq -0x18(%rax), %rcx cmpl $0x0, 0xe0(%rdi,%rcx) movl 0xe4(%rdi,%rcx), %r8d je 0x368864 testl %r8d, %r8d je 0x36887e movl 0xec(%r15,%rcx), %r12d...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/gemm_x86_fma.cpp
ncnn::transpose_unpack_output_tile(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void transpose_unpack_output_tile(const Mat& topT, Mat& top_blob, int i, int max_ii, int j, int max_jj) { const int out_elempack = top_blob.elempack; const int out_hstep = top_blob.dims == 3 ? (int)top_blob.cstep : top_blob.w; const float* pp = topT; int ii = 0; #if __SSE2__ #if __AVX__ #if __A...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movl %r8d, %ebp movl %edx, %r10d leaq 0x2c(%rsi), %rax leaq 0x40(%rsi), %rdx cmpl $0x3, 0x28(%rsi) cmoveq %rdx, %rax movl 0x18(%rsi), %r11d movslq (%rax), %rbx movq (%rdi), %rdi leal (,%rbx,8), %r14d movl $0x8, %r8d movl %ebp, %eax cltd idivl %r8d imull ...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/gemm_x86_fma.cpp
virtual thunk to ncnn::Gemm_x86_avx::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int Gemm_x86_avx::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { int M; int N; if (constantA && constantB) { M = constantM; N = constantN; } else if (constantA) { const Mat& B = bottom_blobs[0]; M = consta...
movq (%rdi), %rax addq -0x40(%rax), %rdi jmp 0x37197a
/csukuangfj[P]ncnn/build_O2/src/layer/x86/gemm_x86_avx.cpp
ncnn::GroupNorm_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int GroupNorm_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { const int dims = bottom_top_blob.dims; const int channels_per_group = channels / group; if (dims == 1) { #pragma omp parallel for num_threads(opt.num_threads) for (int g = 0; g < group; g++) { ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, -0x38(%rsp) movl 0x28(%rsi), %esi movq (%rdi), %rax movq %rax, -0x28(%rsp) movq -0x18(%rax), %r10 movl 0xd0(%rdi,%r10), %ebp movl 0xd4(%rdi,%r10), %eax cltd idivl %ebp movl %eax, %ecx movslq %eax, %r11 cmpl $0x2, %esi movq %rdi, -0x20(%rsp) mo...
/csukuangfj[P]ncnn/src/layer/x86/groupnorm_x86.cpp
ncnn::LayerNorm::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int LayerNorm::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { // x = (x - mean) / sqrt(var + eps) * gamma + beta int dims = bottom_top_blob.dims; if (dims == 1) { int w = bottom_top_blob.w; // assert affine_size == w float* ptr = bottom_top_blob; // ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl 0x28(%rsi), %eax cmpl $0x3, %eax je 0x37b22b cmpl $0x2, %eax je 0x37b103 cmpl $0x1, %eax jne 0x37b56b movl 0x2c(%rsi), %edx movq (%rsi), %rax xorl %esi, %esi testl %edx, %edx movl $0x0, %ecx cmovgl %edx, %ecx xorps %xmm0, %xmm0 cmpq %rsi, %rcx je 0x37b38a addss (%rax,%rs...
/csukuangfj[P]ncnn/src/layer/layernorm.cpp
ncnn::MultiHeadAttention_x86::MultiHeadAttention_x86()
MultiHeadAttention_x86::MultiHeadAttention_x86() { #if __SSE2__ support_packing = true; #endif // __SSE2__ q_gemm = 0; k_gemm = 0; v_gemm = 0; qk_gemm = 0; qkv_gemm = 0; qk_softmax = 0; o_gemm = 0; }
movq (%rsi), %rax movq %rax, (%rdi) movq 0x8(%rsi), %rcx movq -0x18(%rax), %rax movq %rcx, (%rdi,%rax) movq (%rdi), %rax movq -0x18(%rax), %rax movb $0x1, 0xb(%rdi,%rax) xorps %xmm0, %xmm0 movups %xmm0, 0x28(%rdi) movups %xmm0, 0x18(%rdi) movups %xmm0, 0x8(%rdi) andq $0x0, 0x38(%rdi) retq nop
/csukuangfj[P]ncnn/src/layer/x86/multiheadattention_x86.cpp
ncnn::MultiHeadAttention_x86::create_pipeline(ncnn::Option const&)
int MultiHeadAttention_x86::create_pipeline(const Option& opt) { { const int embed_dim_per_head = embed_dim / num_heads; const float inv_sqrt_embed_dim_per_head = 1.f / sqrtf(embed_dim_per_head); q_gemm = ncnn::create_layer(ncnn::LayerType::Gemm); ncnn::ParamDict pd; pd.set(...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xb8, %rsp movq %rdi, %rbx movq (%rdi), %rax movq -0x18(%rax), %rcx movl 0xd0(%rdi,%rcx), %eax cltd idivl 0xd4(%rdi,%rcx) cvtsi2ss %eax, %xmm0 rsqrtss %xmm0, %xmm1 mulss %xmm1, %xmm0 mulss %xmm1, %xmm0 addss 0x6eace(%rip), %xmm0 # 0x3f3714 movq ...
/csukuangfj[P]ncnn/src/layer/x86/multiheadattention_x86.cpp
virtual thunk to ncnn::MultiHeadAttention_x86::destroy_pipeline(ncnn::Option const&)
int MultiHeadAttention_x86::destroy_pipeline(const Option& opt) { if (q_gemm) { q_gemm->destroy_pipeline(opt); delete q_gemm; q_gemm = 0; } if (k_gemm) { k_gemm->destroy_pipeline(opt); delete k_gemm; k_gemm = 0; } if (v_gemm) { v_...
pushq %rax movq (%rdi), %rax addq -0x38(%rax), %rdi callq 0x38629c xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/src/layer/x86/multiheadattention_x86.cpp
ncnn::MultiHeadAttention_x86::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int MultiHeadAttention_x86::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& q_blob = bottom_blobs[0]; const Mat& k_blob = (bottom_blobs.size() == 1 || (bottom_blobs.size() == 2 && attn_mask)) ? q_blob : bottom_blobs[1]; const Mat& v_blob = (bo...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2e8, %rsp # imm = 0x2E8 movq %rcx, %rbx movq %rdx, 0x268(%rsp) movq %rdi, %r15 movq (%rsi), %r14 movq 0x8(%rsi), %rcx subq %r14, %rcx pushq $0x48 popq %rsi movq %rcx, %rax cqto idivq %rsi movq %r14, %r12 movq %r14, %r13 cmpq $0x1, %rax...
/csukuangfj[P]ncnn/src/layer/x86/multiheadattention_x86.cpp
ncnn::MultiHeadAttention_x86_avx512::MultiHeadAttention_x86_avx512()
MultiHeadAttention_x86_avx512::MultiHeadAttention_x86_avx512() { #if __SSE2__ support_packing = true; #endif // __SSE2__ q_gemm = 0; k_gemm = 0; v_gemm = 0; qk_gemm = 0; qkv_gemm = 0; qk_softmax = 0; o_gemm = 0; }
pushq %rbx movq %rdi, %rbx addq $0x40, %rdi callq 0x383210 leaq 0x103800(%rip), %rax # 0x48aec0 movq %rax, (%rbx) leaq 0x103876(%rip), %rax # 0x48af40 movq %rax, 0x40(%rbx) movb $0x1, 0x4b(%rbx) vxorps %xmm0, %xmm0, %xmm0 vmovups %ymm0, 0x8(%rbx) vmovups %ymm0, 0x20(%rbx) popq %rbx vzeroupper retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/multiheadattention_x86_avx512.cpp
virtual thunk to ncnn::MultiHeadAttention_x86_avx512::create_pipeline(ncnn::Option const&)
int MultiHeadAttention_x86_avx512::create_pipeline(const Option& opt) { { const int embed_dim_per_head = embed_dim / num_heads; const float inv_sqrt_embed_dim_per_head = 1.f / sqrtf(embed_dim_per_head); q_gemm = ncnn::create_layer(ncnn::LayerType::Gemm); ncnn::ParamDict pd; ...
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x3876e6 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/multiheadattention_x86_avx512.cpp
ncnn::MultiHeadAttention_x86_fma::MultiHeadAttention_x86_fma()
MultiHeadAttention_x86_fma::MultiHeadAttention_x86_fma() { #if __SSE2__ support_packing = true; #endif // __SSE2__ q_gemm = 0; k_gemm = 0; v_gemm = 0; qk_gemm = 0; qkv_gemm = 0; qk_softmax = 0; o_gemm = 0; }
pushq %rbx movq %rdi, %rbx addq $0x40, %rdi callq 0x383210 leaq 0x100fb4(%rip), %rax # 0x48afe0 movq %rax, (%rbx) leaq 0x10102a(%rip), %rax # 0x48b060 movq %rax, 0x40(%rbx) movb $0x1, 0x4b(%rbx) vxorps %xmm0, %xmm0, %xmm0 vmovups %ymm0, 0x8(%rbx) vmovups %ymm0, 0x20(%rbx) popq %rbx vzeroupper retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/multiheadattention_x86_fma.cpp
virtual thunk to ncnn::MultiHeadAttention_x86_fma::destroy_pipeline(ncnn::Option const&)
int MultiHeadAttention_x86_fma::destroy_pipeline(const Option& opt) { if (q_gemm) { q_gemm->destroy_pipeline(opt); delete q_gemm; q_gemm = 0; } if (k_gemm) { k_gemm->destroy_pipeline(opt); delete k_gemm; k_gemm = 0; } if (v_gemm) { ...
pushq %rax movq (%rdi), %rax addq -0x38(%rax), %rdi callq 0x38b764 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O2/src/layer/x86/multiheadattention_x86_fma.cpp
ncnn::MultiHeadAttention_x86_avx::MultiHeadAttention_x86_avx()
MultiHeadAttention_x86_avx::MultiHeadAttention_x86_avx() { #if __SSE2__ support_packing = true; #endif // __SSE2__ q_gemm = 0; k_gemm = 0; v_gemm = 0; qk_gemm = 0; qkv_gemm = 0; qk_softmax = 0; o_gemm = 0; }
movq (%rsi), %rax movq %rax, (%rdi) movq 0x8(%rsi), %rcx movq -0x18(%rax), %rax movq %rcx, (%rdi,%rax) movq (%rdi), %rax movq -0x18(%rax), %rax movb $0x1, 0xb(%rdi,%rax) vxorps %xmm0, %xmm0, %xmm0 vmovups %ymm0, 0x20(%rdi) vmovups %ymm0, 0x8(%rdi) vzeroupper retq
/csukuangfj[P]ncnn/build_O2/src/layer/x86/multiheadattention_x86_avx.cpp
ncnn::GELU_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int GELU_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { if (!fast_gelu) { return GELU::forward_inplace(bottom_top_blob, opt); } int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int elempack = bottom_top_blob.elempack; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq (%rdi), %rax movq -0x18(%rax), %rax cmpl $0x0, 0xd0(%rdi,%rax) je 0x38fa8a movl 0x30(%rbx), %ebp imull 0x2c(%rbx), %ebp imull 0x34(%rbx), %ebp movl 0x38(%rbx), %r14d imull 0x18(%rbx), %ebp xorl %r15d, %r15d testl %r14d, %r...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/gelu_x86_avx512.cpp
ncnn::GELU_x86_fma::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int GELU_x86_fma::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { if (!fast_gelu) { return GELU::forward_inplace(bottom_top_blob, opt); } int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int elempack = bottom_top_blob.elempack; in...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq (%rdi), %rax movq -0x18(%rax), %rax cmpl $0x0, 0xd0(%rdi,%rax) je 0x38fe37 movl 0x30(%rbx), %ebp movl 0x38(%rbx), %r14d imull 0x2c(%rbx), %ebp imull 0x34(%rbx), %ebp imull 0x18(%rbx), %ebp xorl %r15d, %r15d testl %r14d, %r...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/gelu_x86_fma.cpp
ncnn::Convolution1D_x86_fma::create_pipeline(ncnn::Option const&)
int Convolution1D_x86_fma::create_pipeline(const Option& /*opt*/) { if (dynamic_weight) return 0; int num_input = weight_data_size / kernel_w / num_output; convolution1d_transform_kernel_packed(weight_data, weight_data_tm, num_input, num_output, kernel_w); return 0; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 movq %rdi, %rcx movq (%rdi), %rax movq -0x18(%rax), %rdi cmpl $0x0, 0x140(%rcx,%rdi) je 0x39b763 xorl %eax, %eax addq $0x108, %rsp # imm = 0x108 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq ...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/convolution1d_x86_fma.cpp
ncnn::ConvolutionDepthWise1D::make_padding(ncnn::Mat const&, ncnn::Mat&, int, ncnn::Option const&) const
void ConvolutionDepthWise1D::make_padding(const Mat& bottom_blob, Mat& bottom_blob_bordered, int _kernel_w, const Option& opt) const { int w = bottom_blob.w; const int kernel_extent_w = dilation_w * (_kernel_w - 1) + 1; bottom_blob_bordered = bottom_blob; if (pad_left > 0 || pad_right > 0) { ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r8, %r12 movl %ecx, %ebp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x2c(%rsi), %r13d decl %ebp imull 0xd8(%rdi), %ebp cmpq %rsi, %rdx je 0x3a5c93 movq 0x8(%r14), %rax testq %rax, %rax je 0x3a5c1c lock incl (%rax) movq 0x...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise1d.cpp
ncnn::ConvolutionDepthWise3D::load_model(ncnn::ModelBin const&)
int ConvolutionDepthWise3D::load_model(const ModelBin& mb) { weight_data = mb.load(weight_data_size, 0); if (weight_data.empty()) return -100; if (bias_term) { bias_data = mb.load(num_output, 1); if (bias_data.empty()) return -100; } return 0; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r15 movq %rdi, %rbx movl 0x118(%rdi), %edx movq (%rsi), %rax leaq 0x8(%rsp), %r14 movq %r14, %rdi xorl %ecx, %ecx callq *0x10(%rax) leaq 0x170(%rbx), %r12 movq 0x8(%r14), %rax cmpq %r14, %r12 je 0x3a74e6 testq %rax, %rax je 0x3a7456 loc...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise3d.cpp
ncnn::Pooling3D::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Pooling3D::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { // max value in NxN window // avg value in NxN window int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; // ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1c8, %rsp # imm = 0x1C8 movq %rdx, %r12 movq %rsi, %rbx movl 0x2c(%rsi), %r13d movl 0x30(%rsi), %eax movq %rax, 0x50(%rsp) movl 0x34(%rsi), %eax movl %eax, 0x80(%rsp) movl 0x38(%rsi), %esi movq 0x10(%rbx), %r15 cmpl $0x0, 0x104(%rdi) p...
/csukuangfj[P]ncnn/src/layer/pooling3d.cpp
ncnn::MatMul_x86::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int MatMul_x86::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& A = bottom_blobs[0]; const Mat& B = bottom_blobs[1]; Mat& top_blob = top_blobs[0]; const int Adims = A.dims; const int Bdims = B.dims; const int max_ABdims = std::max...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %rcx, %r15 movq %rdi, 0x98(%rsp) movq (%rsi), %rbx leaq 0x48(%rbx), %rax movq %rax, 0x88(%rsp) movq %rdx, 0x70(%rsp) movq (%rdx), %r12 movl 0x28(%rbx), %ebp movl 0x70(%rbx), %r14d cmpl %r14d, %ebp movl %r14...
/csukuangfj[P]ncnn/src/layer/x86/matmul_x86.cpp
ncnn::MatMul_x86_avx512::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int MatMul_x86_avx512::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& A = bottom_blobs[0]; const Mat& B = bottom_blobs[1]; Mat& top_blob = top_blobs[0]; const int Adims = A.dims; const int Bdims = B.dims; const int max_ABdims = s...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %rcx, %r15 movq %rdi, 0x98(%rsp) movq (%rsi), %rbx leaq 0x48(%rbx), %rax movq %rax, 0x88(%rsp) movq %rdx, 0x70(%rsp) movq (%rdx), %r12 movl 0x28(%rbx), %ebp movl 0x70(%rbx), %r14d cmpl %r14d, %ebp movl %r14...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/matmul_x86_avx512.cpp
ncnn::MatMul_x86_fma::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int MatMul_x86_fma::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& A = bottom_blobs[0]; const Mat& B = bottom_blobs[1]; Mat& top_blob = top_blobs[0]; const int Adims = A.dims; const int Bdims = B.dims; const int max_ABdims = std:...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %rcx, %r15 movq %rdi, 0x98(%rsp) movq (%rsi), %rbx leaq 0x48(%rbx), %rax movq %rax, 0x88(%rsp) movq %rdx, 0x70(%rsp) movq (%rdx), %r12 movl 0x28(%rbx), %ebp movl 0x70(%rbx), %r14d cmpl %r14d, %ebp movl %r14...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/matmul_x86_fma.cpp
ncnn::DeconvolutionDepthWise1D::cut_padding(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
void DeconvolutionDepthWise1D::cut_padding(const Mat& top_blob_bordered, Mat& top_blob, const Option& opt) const { if (pad_left > 0 || pad_right > 0) { copy_cut_border(top_blob_bordered, top_blob, 0, 0, pad_left, pad_right, opt); } else if (output_w > 0) { int wcut = top_blob_bordere...
pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 movl 0xe0(%rdi), %r8d movl 0xe4(%rdi), %r9d testl %r8d, %r8d setg %al testl %r9d, %r9d setg %dl orb %al, %dl cmpb $0x1, %dl jne 0x3badcc movq %rcx, (%rsp) movq %r14, %rdi movq %rbx, %rsi xorl %edx, %edx xorl %ecx, %ecx jmp 0x3bae7c movl 0xec(%rdi), %eax t...
/csukuangfj[P]ncnn/src/layer/deconvolutiondepthwise1d.cpp
ncnn::DeconvolutionDepthWise3D::load_param(ncnn::ParamDict const&)
int DeconvolutionDepthWise3D::load_param(const ParamDict& pd) { num_output = pd.get(0, 0); kernel_w = pd.get(1, 0); kernel_h = pd.get(11, kernel_w); kernel_d = pd.get(21, kernel_w); dilation_w = pd.get(2, 1); dilation_h = pd.get(12, dilation_w); dilation_d = pd.get(22, dilation_w); strid...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x6eb82 movl %eax, 0xd0(%rbx) pushq $0x1 popq %rbp movq %r14, %rdi movl %ebp, %esi xorl %edx, %edx callq 0x6eb82 movl %eax, 0xd4(%rbx) pushq $0xb popq %rsi movq %r14, %rdi m...
/csukuangfj[P]ncnn/src/layer/deconvolutiondepthwise3d.cpp
ncnn::DeconvolutionDepthWise3D::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int DeconvolutionDepthWise3D::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; size_t elemsize = bottom_blob.elemsize; const int kernel_extent_w = dilation_w * (kernel_w - 1) + 1; const int kernel_exte...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1c8, %rsp # imm = 0x1C8 movl 0x2c(%rsi), %r12d movl 0x30(%rsi), %r14d movl 0x34(%rsi), %r8d movl 0xd4(%rdi), %ebx decl %ebx imull 0xe0(%rdi), %ebx movq %rsi, 0x28(%rsp) movq 0x10(%rsi), %r9 decl %r12d imull 0xec(%rdi), %r12d movl 0xd8(...
/csukuangfj[P]ncnn/src/layer/deconvolutiondepthwise3d.cpp
ncnn::sum_dim(std::vector<int, std::allocator<int>> const&, int, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, s...
static float sum_dim(const std::vector<int>& dim_sizes, int d, const std::vector<Mat>& bottom_blobs, const std::vector<std::string>& tokens, std::vector<int>& indexes) { if (d == (int)dim_sizes.size()) { float v = 1.f; for (size_t b = 0; b < bottom_blobs.size(); b++) { v *= g...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %r8, %rbx movq %rcx, %r15 movq %rdx, %rbp movq %rdi, %r12 movq (%rdi), %rax movq 0x8(%rdi), %rdi subq %rax, %rdi shrq $0x2, %rdi cmpl %esi, %edi jne 0x3be771 movq (%rbp), %r12 movq 0x8(%rbp), %rax subq %r12, %rax pushq $0x48 popq %rsi cqt...
/csukuangfj[P]ncnn/src/layer/einsum.cpp
ncnn::DeformableConv2D::load_model(ncnn::ModelBin const&)
int DeformableConv2D::load_model(const ModelBin& mb) { weight_data = mb.load(weight_data_size, 0); if (weight_data.empty()) return -100; if (bias_term) { bias_data = mb.load(num_output, 1); if (bias_data.empty()) return -100; } return 0; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r15 movq %rdi, %rbx movl 0x100(%rdi), %edx movq (%rsi), %rax leaq 0x8(%rsp), %r14 movq %r14, %rdi xorl %ecx, %ecx callq *0x10(%rax) leaq 0x150(%rbx), %r12 movq 0x8(%r14), %rax cmpq %r14, %r12 je 0x3bee82 testq %rax, %rax je 0x3bedf2 loc...
/csukuangfj[P]ncnn/src/layer/deformableconv2d.cpp
ncnn::DeformableConv2D_x86::destroy_pipeline(ncnn::Option const&)
int DeformableConv2D_x86::destroy_pipeline(const Option& opt) { if (activation) { activation->destroy_pipeline(opt); delete activation; activation = 0; } if (gemm) { gemm->destroy_pipeline(opt); delete gemm; gemm = 0; } return 0; }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rdi), %rdi testq %rdi, %rdi je 0x3c0900 movq (%rdi), %rax movq %r14, %rsi callq *0x28(%rax) movq 0x8(%rbx), %rdi testq %rdi, %rdi je 0x3c08fb movq (%rdi), %rax callq *0x8(%rax) andq $0x0, 0x8(%rbx) movq 0x58(%rbx), %rdi testq %rdi, %rdi je 0x3c0...
/csukuangfj[P]ncnn/src/layer/x86/deformableconv2d_x86.cpp
ncnn::DeformableConv2D_x86_avx512::create_pipeline(ncnn::Option const&)
int DeformableConv2D_x86_avx512::create_pipeline(const Option& opt) { activation = create_activation_layer(activation_type, activation_params, opt); int kernel_size = kernel_w * kernel_h; int num_input = weight_data_size / kernel_size / num_output; int elempack = 1; int out_elempack = 1; #if __SS...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x188, %rsp # imm = 0x188 movq %rsi, %r14 movq %rdi, %r12 movq (%rdi), %rax movq -0x18(%rax), %rbx movl 0x104(%rdi,%rbx), %ecx decl %ecx cmpl $0x5, %ecx ja 0x3c48b3 movq %r14, %r13 leaq 0x360a2(%rip), %rax # 0x3fa740 movslq (%rax,%rc...
/csukuangfj[P]ncnn/build_O2/src/layer/x86/deformableconv2d_x86_avx512.cpp