MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / CaffePreproccessor

Method CaffePreproccessor

utils/GraphUtils.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104CaffePreproccessor::CaffePreproccessor(std::array<float, 3> mean, bool bgr, float scale)
105 : _mean(mean), _bgr(bgr), _scale(scale)
106{
107 if (_bgr)
108 {
109 std::swap(_mean[0], _mean[2]);
110 }
111}
112
113void CaffePreproccessor::preprocess(ITensor &tensor)
114{

Callers

nothing calls this directly

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected