MCPcopy Create free account
hub / github.com/42dot/VFDepth / upsample

Function upsample

network/blocks.py:34–38  ·  view source on GitHub ↗

This function upsamples input tensor by a factor of 2

(x)

Source from the content-addressed store, hash-verified

32
33
34def upsample(x):
35 """
36 This function upsamples input tensor by a factor of 2
37 """
38 return F.interpolate(x, scale_factor=2, mode='nearest')
39
40
41def conv2d(in_planes, out_planes, kernel_size=3, stride=1, dilation=1, nonlin = 'LRU', padding_mode = 'reflect', norm = False):

Callers 1

forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected