Bean Machine
  • beanmachine.ppl package
  • beanmachine.ppl.compiler package
    • Submodules
      • beanmachine.ppl.compiler.ast_patterns module
      • beanmachine.ppl.compiler.ast_tools module
      • beanmachine.ppl.compiler.beanstalk_common module
      • beanmachine.ppl.compiler.bm_graph_builder module
      • beanmachine.ppl.compiler.bm_to_bmg module
      • beanmachine.ppl.compiler.bmg_node_types module
      • beanmachine.ppl.compiler.bmg_nodes module
      • beanmachine.ppl.compiler.bmg_requirements module
      • beanmachine.ppl.compiler.bmg_types module
      • beanmachine.ppl.compiler.broadcaster module
      • beanmachine.ppl.compiler.copy_and_replace module
      • beanmachine.ppl.compiler.copy_transformer module
      • beanmachine.ppl.compiler.devectorizer_transformer module
      • beanmachine.ppl.compiler.error_report module
      • beanmachine.ppl.compiler.execution_context module
      • beanmachine.ppl.compiler.fix_additions module
      • beanmachine.ppl.compiler.fix_arithmetic module
      • beanmachine.ppl.compiler.fix_beta_conjugate_prior module
      • beanmachine.ppl.compiler.fix_bool_arithmetic module
      • beanmachine.ppl.compiler.fix_bool_comparisons module
      • beanmachine.ppl.compiler.fix_logsumexp module
      • beanmachine.ppl.compiler.fix_matrix_scale module
      • beanmachine.ppl.compiler.fix_multiary_ops module
      • beanmachine.ppl.compiler.fix_normal_conjugate_prior module
      • beanmachine.ppl.compiler.fix_observations module
      • beanmachine.ppl.compiler.fix_observe_true module
      • beanmachine.ppl.compiler.fix_problem module
      • beanmachine.ppl.compiler.fix_problems module
      • beanmachine.ppl.compiler.fix_requirements module
      • beanmachine.ppl.compiler.fix_transpose module
      • beanmachine.ppl.compiler.fix_unsupported module
      • beanmachine.ppl.compiler.gen_bm_python module
      • beanmachine.ppl.compiler.gen_bmg_cpp module
      • beanmachine.ppl.compiler.gen_bmg_graph module
      • beanmachine.ppl.compiler.gen_bmg_python module
      • beanmachine.ppl.compiler.gen_builder module
      • beanmachine.ppl.compiler.gen_dot module
      • beanmachine.ppl.compiler.gen_mini module
      • beanmachine.ppl.compiler.graph_labels module
      • beanmachine.ppl.compiler.internal_error module
      • beanmachine.ppl.compiler.lattice_typer module
      • beanmachine.ppl.compiler.patterns module
      • beanmachine.ppl.compiler.performance_report module
      • beanmachine.ppl.compiler.profiler module
      • beanmachine.ppl.compiler.rules module
      • beanmachine.ppl.compiler.runtime module
      • beanmachine.ppl.compiler.single_assignment module
      • beanmachine.ppl.compiler.size_assessment module
      • beanmachine.ppl.compiler.sizer module
      • beanmachine.ppl.compiler.special_function_caller module
      • beanmachine.ppl.compiler.support module
      • beanmachine.ppl.compiler.tensorizer_transformer module
      • beanmachine.ppl.compiler.typer_base module
    • Module contents
  • beanmachine.ppl.distributions package
  • beanmachine.ppl.inference package
  • beanmachine.ppl.model package
  • beanmachine.ppl.world package
Bean Machine
  • beanmachine.ppl package
  • beanmachine.ppl.compiler package
  • beanmachine.ppl.compiler.copy_transformer module
  • View page source

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]
Previous Next

© Copyright 2022, Meta Platforms, Inc..

Built with Sphinx using a theme provided by Read the Docs.