MCPcopy Create free account
hub / github.com/RootHarold/Lycoris / BP_Multi_Thread_Forward

Method BP_Multi_Thread_Forward

LycorisNet/sources/individual.cpp:381–392  ·  view source on GitHub ↗

One of the functor of BP_Multi_Thread().

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected