probly.layers.torch.pack_interval¶
- probly.layers.torch.pack_interval(x: Tensor, channel_dim: int = 1) Tensor[source]¶
Promote
xto a packed interval tensor withlo == hi == x.Doubles
xalongchannel_dim. Call once at the network entry, before the first interval layer. Analogous to BatchEnsemble’stile_inputs(which doubles the batch dim instead).