niftynet.layer.dilatedcontext module

class DilatedTensor(input_tensor, dilation_factor)[source]

Bases: object

This context manager makes a wrapper of input_tensor When created, the input_tensor is dilated, the input_tensor resumes to original space when exiting the context.

tensor