#include "blas.h"
#include "math.h"
#include <assert.h>
#include <float.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
void | axpy_cpu (int N, float ALPHA, float *X, int INCX, float *Y, int INCY) |
void | const_cpu (int N, float ALPHA, float *X, int INCX) |
void | copy_cpu (int N, float *X, int INCX, float *Y, int INCY) |
float | dot_cpu (int N, float *X, int INCX, float *Y, int INCY) |
void | fill_cpu (int N, float ALPHA, float *X, int INCX) |
void | flatten (float *x, int size, int layers, int batch, int forward) |
void | l2_cpu (int n, float *pred, float *truth, float *delta, float *error) |
void | mean_cpu (float *x, int batch, int filters, int spatial, float *mean) |
void | mul_cpu (int N, float *X, int INCX, float *Y, int INCY) |
void | normalize_cpu (float *x, float *mean, float *variance, int batch, int filters, int spatial) |
void | pow_cpu (int N, float ALPHA, float *X, int INCX, float *Y, int INCY) |
void | reorg_cpu (float *x, int w, int h, int c, int batch, int stride, int forward, float *out) |
void | scal_cpu (int N, float ALPHA, float *X, int INCX) |
void | shortcut_cpu (int batch, int w1, int h1, int c1, float *add, int w2, int h2, int c2, float *out) |
void | smooth_l1_cpu (int n, float *pred, float *truth, float *delta, float *error) |
void | softmax (float *input, int n, float temp, float *output) |
void | variance_cpu (float *x, float *mean, int batch, int filters, int spatial, float *variance) |
void | weighted_sum_cpu (float *a, float *b, float *s, int n, float *c) |
void axpy_cpu | ( | int | N, |
float | ALPHA, | ||
float * | X, | ||
int | INCX, | ||
float * | Y, | ||
int | INCY | ||
) |
void copy_cpu | ( | int | N, |
float * | X, | ||
int | INCX, | ||
float * | Y, | ||
int | INCY | ||
) |
float dot_cpu | ( | int | N, |
float * | X, | ||
int | INCX, | ||
float * | Y, | ||
int | INCY | ||
) |
void flatten | ( | float * | x, |
int | size, | ||
int | layers, | ||
int | batch, | ||
int | forward | ||
) |
void l2_cpu | ( | int | n, |
float * | pred, | ||
float * | truth, | ||
float * | delta, | ||
float * | error | ||
) |
void mean_cpu | ( | float * | x, |
int | batch, | ||
int | filters, | ||
int | spatial, | ||
float * | mean | ||
) |
void mul_cpu | ( | int | N, |
float * | X, | ||
int | INCX, | ||
float * | Y, | ||
int | INCY | ||
) |
void normalize_cpu | ( | float * | x, |
float * | mean, | ||
float * | variance, | ||
int | batch, | ||
int | filters, | ||
int | spatial | ||
) |
void pow_cpu | ( | int | N, |
float | ALPHA, | ||
float * | X, | ||
int | INCX, | ||
float * | Y, | ||
int | INCY | ||
) |
void reorg_cpu | ( | float * | x, |
int | w, | ||
int | h, | ||
int | c, | ||
int | batch, | ||
int | stride, | ||
int | forward, | ||
float * | out | ||
) |
void shortcut_cpu | ( | int | batch, |
int | w1, | ||
int | h1, | ||
int | c1, | ||
float * | add, | ||
int | w2, | ||
int | h2, | ||
int | c2, | ||
float * | out | ||
) |
void smooth_l1_cpu | ( | int | n, |
float * | pred, | ||
float * | truth, | ||
float * | delta, | ||
float * | error | ||
) |
void softmax | ( | float * | input, |
int | n, | ||
float | temp, | ||
float * | output | ||
) |
void variance_cpu | ( | float * | x, |
float * | mean, | ||
int | batch, | ||
int | filters, | ||
int | spatial, | ||
float * | variance | ||
) |
void weighted_sum_cpu | ( | float * | a, |
float * | b, | ||
float * | s, | ||
int | n, | ||
float * | c | ||
) |