tfmri.sampling.expand_density

expand_density(density, samples)[source]

Expands a density tensor.

Parameters
  • density – A Tensor. Must have shape [..., views * samples].

  • samples – An int. The number of samples in each view.

Returns

A reshaped Tensor with shape [..., views, samples].