One of the functor of BP_Multi_Thread().
| 379 | |
| 380 | // One of the functor of BP_Multi_Thread(). |
| 381 | void Individual::BP_Multi_Thread_Forward(uint32_t start, uint32_t end, float *midData) { |
| 382 | for (uint32_t i = start; i < end; ++i) { |
| 383 | float temp_data = 0.0f; |
| 384 | |
| 385 | for (uint32_t j = 0; j < args->batchSize; ++j) { |
| 386 | temp_data += args->batchData[j][i]; |
| 387 | } |
| 388 | |
| 389 | temp_data /= args->batchSize; |
| 390 | midData[i] = temp_data; |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | /* |
| 395 | * Get a vector of nodes in a specific layer of this neural network. |
nothing calls this directly
no outgoing calls
no test coverage detected