Bases: ABC, Module
ABC
Module
Base class for slice profiles.
Initialize internal Module state, shared by both nn.Module and ScriptModule.
Evaluate the slice profile at a position x.
Sample n random positions from the profile.
Use the profile as a probability density function to sample positions.
size – Number of positions to sample
Sampled positions, shape will be size.