From a9fef1bd66e6b2c40c344c1bdcd33bb1d209461c Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Fri, 10 Aug 2018 21:26:53 +0000
Subject: [PATCH] Bug fixes. Tested im2col_cpu_custom_transpose - bad way.
---
src/gemm.h | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/gemm.h b/src/gemm.h
index 8664d8e..62dbe30 100644
--- a/src/gemm.h
+++ b/src/gemm.h
@@ -1,5 +1,11 @@
#ifndef GEMM_H
#define GEMM_H
+#include "activations.h"
+#include <stdint.h>
+#include <stddef.h>
+
+void convolution_2d(int w, int h, int ksize, int n, int c, int pad, int stride,
+ float *weights, float *input, float *output);
static inline void set_bit(unsigned char *const dst, size_t index) {
size_t dst_i = index / 8;
@@ -16,17 +22,23 @@
void float_to_bit(float *src, unsigned char *dst, size_t size);
+void transpose_block_SSE4x4(float *A, float *B, const int n, const int m,
+ const int lda, const int ldb, const int block_size);
+
void gemm_nn_custom_bin_mean_transposed(int M, int N, int K, float ALPHA_UNUSED,
unsigned char *A, int lda,
unsigned char *B, int ldb,
float *C, int ldc, float *mean_arr);
+void im2col_cpu_custom(float* data_im,
+ int channels, int height, int width,
+ int ksize, int stride, int pad, float* data_col);
-//void gemm_nn_custom_bin_mean(int M, int N, int K, float ALPHA_UNUSED,
- //unsigned char *A, int lda,
- //unsigned char *B, int ldb,
- //float *C, int ldc, float *mean_arr)
+void im2col_cpu_custom_transpose(float* data_im,
+ int channels, int height, int width,
+ int ksize, int stride, int pad, float* data_col, int ldb_align);
+void activate_array_cpu_custom(float *x, const int n, const ACTIVATION a);
void gemm_bin(int M, int N, int K, float ALPHA,
--
Gitblit v1.10.0