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

Function krnl_vadd

hls_smartInfinity/src/kernel_cpp/adam.cpp:112–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111extern "C"{
112 void krnl_vadd(
113 vec* grad,
114 vec* param,
115 vec* exp_avg,
116 vec* exp_avg_sq,
117 hvec* param16,
118 uint n_elements,
119 float betta1,
120 float betta2,
121 float bias_correction2,
122 float eps,
123 float w_decay,
124 float step_size,
125 float combined_unscale
126 )
127 {
128 #pragma HLS interface m_axi port=param16 offset=slave bundle=half max_write_burst_length=256
129 #pragma HLS interface m_axi port=grad offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
130 #pragma HLS interface m_axi port=param offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
131 #pragma HLS interface m_axi port=exp_avg offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
132 #pragma HLS interface m_axi port=exp_avg_sq offset=slave bundle=single max_read_burst_length=256 max_write_burst_length=256
133 adam ( grad, param, exp_avg, exp_avg_sq, param16, n_elements,
134 betta1, betta2, bias_correction2, eps, w_decay, step_size, combined_unscale );
135 }
136}

Callers

nothing calls this directly

Calls 1

adamFunction · 0.70

Tested by

no test coverage detected