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

Method PSPModuleImpl

src/architectures/PSPNetDecoder.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23PSPModuleImpl::PSPModuleImpl(int in_channels, std::vector<int> _sizes, bool use_bathcnorm) {
24 for (auto size : _sizes) {
25 blocks->push_back(PSPBlock(in_channels, in_channels / _sizes.size(), size, use_bathcnorm));
26 }
27 register_module("blocks", blocks);
28}
29
30torch::Tensor PSPModuleImpl::forward(torch::Tensor x) {
31 std::vector<torch::Tensor> xs;

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected