tfmri.sampling.expand_trajectory

expand_trajectory(trajectory, samples)[source]

Expands a trajectory tensor.

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

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

Returns

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