MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / parseAbsVal

Function parseAbsVal

parsers/caffe/caffeParser/opParsers/parseAbsVal.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace nvcaffeparser1
23{
24ILayer* parseAbsVal(INetworkDefinition& network, const trtcaffe::LayerParameter& msg, CaffeWeightFactory& /* weightFactory */, BlobNameToTensor& tensors)
25{
26 if (!checkBlobs(msg, 1, 1))
27 {
28 return nullptr;
29 }
30 return network.addUnary(*tensors[msg.bottom(0)], UnaryOperation::kABS);
31}
32} //namespace nvcaffeparser1

Callers

nothing calls this directly

Calls 2

checkBlobsFunction · 0.85
addUnaryMethod · 0.80

Tested by

no test coverage detected