Structs

  • | The operator performs sampling based | on the input sampling weights. | | All weights are cummulative probability | thus sorted. | | The output is a 1-D tensor (Tensor). | | If two inputs are given, the second input | is used to provide shape of the output | sample tensor. | | Otherwise, we use argument num_samples | to determine the number of samples to | generate. |