MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / prune

Method prune

toolbench/inference/Tree/Tree.py:80–86  ·  view source on GitHub ↗

pruning off the subtree

(self)

Source from the content-addressed store, hash-verified

78 return size
79
80 def prune(self):
81 '''
82 pruning off the subtree
83 '''
84 self.pruned = True
85 for child in self.children:
86 child.prune()
87
88 def print(self,process_id = 0):
89 if process_id != 0:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected