beanmachine.ppl.compiler.copy_transformer module
- class beanmachine.ppl.compiler.copy_transformer.CopyGraph(cloner: beanmachine.ppl.compiler.copy_and_replace.Cloner, sizer: beanmachine.ppl.compiler.sizer.Sizer)
Bases:
beanmachine.ppl.compiler.copy_and_replace.NodeTransformer
- assess_node(node: beanmachine.ppl.compiler.bmg_nodes.BMGNode, original: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder) beanmachine.ppl.compiler.copy_and_replace.TransformAssessment
- transform_node(node: beanmachine.ppl.compiler.bmg_nodes.BMGNode, new_inputs: List[beanmachine.ppl.compiler.bmg_nodes.BMGNode]) Optional[Union[beanmachine.ppl.compiler.bmg_nodes.BMGNode, List[beanmachine.ppl.compiler.bmg_nodes.BMGNode]]]
- beanmachine.ppl.compiler.copy_transformer.copy(bmg_old: beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder) Tuple[beanmachine.ppl.compiler.bm_graph_builder.BMGraphBuilder, bool, beanmachine.ppl.compiler.error_report.ErrorReport]