def __init__(self): """Populates the parser library with first-pass transforms.""" super().__init__() self._parse_library = [ compiled_computation_transforms.TupleCalledGraphs(only_equal_args=True), compiled_computation_transforms.NestedTupleOfSelectionsAndGraphs(), ]
def __init__(self): """Populates the parser library with mutually exclusive options.""" self._parse_library = [ compiled_computation_transforms.SelectionFromCalledTensorFlowBlock( ), compiled_computation_transforms.LambdaWrappingGraph(), compiled_computation_transforms.LambdaWrappingNoArgGraph(), compiled_computation_transforms.TupleCalledGraphs(), compiled_computation_transforms. CalledCompositionOfTensorFlowBlocks(), compiled_computation_transforms.CalledGraphOnReplicatedArg(), ]