MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / max

Method max

include/core/tensor.h:509–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507 return result;
508 }
509 T max() const {
510 assert(_mem_layout);
511 T result = _mem_layout[0];
512 for (size_t i = 1; i < this->length(); i++)
513 result = result < _mem_layout[i] ? _mem_layout[i] : result;
514 return result;
515 }
516 T sum() const {
517 T result = 0;
518 for (size_t i = 0; i < this->length(); i++)

Callers 15

Cwise_max.cppFile · 0.80
mainFunction · 0.80
test_Max1DMethod · 0.80
test_Max2DMethod · 0.80
test_Max3DMethod · 0.80
test_Max4DMethod · 0.80
test_GlobalMaxPool2DMethod · 0.80

Calls 1

lengthMethod · 0.45

Tested by 15

test_Max1DMethod · 0.64
test_Max2DMethod · 0.64
test_Max3DMethod · 0.64
test_Max4DMethod · 0.64
test_GlobalMaxPool2DMethod · 0.64
test_Maxof4Method · 0.64
test_Hardmax1DMethod · 0.64