TransformationResource

class lifesimmc.core.resources.transformation_resource.TransformationResource(name: str, transformation: Callable[[Tensor], Tensor])

Class representation of the transformation resource.

Parameters:
  • name (str) – The name of the transformation.

  • transformation (Callable[[Tensor], Tensor]) – The transformation function that takes a Tensor as input and returns a Tensor.