35 const float *input_data,
const Shape &weights_shape,
36 const float *weights_data,
const Shape &,
38 float *output_data, ::ruy::Context *ruy_context)
41 const int input_rows = weights_shape.
Dims(dims_count - 1);
44 rhs_params.
rows = input_rows;
50 lhs_params.
cols = weights_shape.
Dims(dims_count - 1);
58 gemm_params.
bias = optional_bias_data;
63 ::ruy::Matrix<float> ruy_lhs;
64 ::ruy::Matrix<float> ruy_rhs;
65 ::ruy::Matrix<float> ruy_dst;
71 ::ruy::MulParams<float, float> ruy_mul_params;
74 ::ruy::Mul(ruy_lhs, ruy_rhs, ruy_mul_params, ruy_context, &ruy_dst);
void FullyConnected(const FullyConnectedParams ¶ms, const Shape &input_shape, const float *input_data, const Shape &weights_shape, const float *weights_data, const Shape &, const float *optional_bias_data, const Shape &output_shape, float *output_data, ::ruy::Context *ruy_context)