MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / aniso_kernel

Function aniso_kernel

monai/networks/nets/segresnet_ds.py:57–66  ·  view source on GitHub ↗

A helper function to compute kernel_size, padding and stride for the given scale Args: scale: scale from a current scale level

(scale: tuple | list)

Source from the content-addressed store, hash-verified

55
56
57def aniso_kernel(scale: tuple | list):
58 """
59 A helper function to compute kernel_size, padding and stride for the given scale
60
61 Args:
62 scale: scale from a current scale level
63 """
64 kernel_size = [3 if scale[k] > 1 else 1 for k in range(len(scale))]
65 padding = [k // 2 for k in kernel_size]
66 return kernel_size, padding, scale
67
68
69class SegResBlock(nn.Module):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…