Tensor Utilities
Dictionary-of-tensors stack / concat / split utilities used by the logger.
- myosuite.utils.tensor_utils.stack_tensor_dict_list(tensor_dict_list)
Stack a list of dicts of arrays into a dict of stacked arrays.
- myosuite.utils.tensor_utils.concat_tensor_dict_list(tensor_dict_list)
Concatenate a list of dicts of arrays along axis 0.
- myosuite.utils.tensor_utils.split_tensor_dict_list(tensor_dict)
Inverse of
stack_tensor_dict_list().Splits a dict of arrays (first axis = time/batch) into a list of single-step dicts.