MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / krnl_vadd

Function krnl_vadd

hls_smartInfinity/src/kernel_cpp/adagrad.cpp:117–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116extern "C"{
117 void krnl_vadd(
118 dhvec* grad16,
119 dhvec* param16,
120 vec* param,
121 vec* exp_avg_sq,
122 uint n_elements,
123 float eps,
124 float w_decay,
125 float step_size,
126 float combined_unscale
127 )
128 {
129 #pragma HLS interface m_axi port=grad16 offset=slave bundle=half max_read_burst_length=256 max_write_burst_length=256
130 #pragma HLS interface m_axi port=param16 offset=slave bundle=half max_write_burst_length=256
131
132 #pragma HLS interface m_axi port=param offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
133 #pragma HLS interface m_axi port=exp_avg_sq offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
134
135 adagrad ( grad16, param16, param, exp_avg_sq, n_elements,
136 eps, w_decay, step_size, combined_unscale );
137 }
138}

Callers

nothing calls this directly

Calls 1

adagradFunction · 0.70

Tested by

no test coverage detected