gw.transforms.utils.get_batch_size_of_input_sample

gw.transforms.utils.get_batch_size_of_input_sample(input_sample)

Parameters

Name Type Description Default
input_sample dict The input sample to transform. Can contain keys of parameters, polarizations required

Returns

Name Type Description
Tuple[bool, int] A tuple containing a boolean indicating if the input sample is batched and an integer representing the batch size of the input sample