MCPcopy Create free account
hub / github.com/AllentDan/LibtorchSegmentation / MergeBlockImpl

Method MergeBlockImpl

src/architectures/FPNDecoder.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62MergeBlockImpl::MergeBlockImpl(std::string policy){
63 if(policy!=policies[0] && policy!=policies[1]){
64 std::cout<< "`merge_policy` must be one of: ['add', 'cat'], got "+policy;
65 }
66 _policy = policy;
67}
68
69torch::Tensor MergeBlockImpl::forward(std::vector<torch::Tensor> x){
70 if(_policy=="add") return sumTensor(x);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected