Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

remove commneted out methods from Module (#8207)

TomuHirata0dec440d6f36
diff --git a/dspy/primitives/program.py b/dspy/primitives/program.py
index b02c8e8da..bd1f979c6 100644
--- a/dspy/primitives/program.py
+++ b/dspy/primitives/program.py
@@ -75,31 +75,6 @@ class Module(BaseModule, metaclass=ProgramMeta):
set_attribute_by_name(self, name, func(predictor))
return self
- # def activate_assertions(self, handler=backtrack_handler, **handler_args):
- # """
- # Activates assertions for the module.
- # The default handler is the backtrack_handler.
- # """
- # assert_transform_module(self, handler, **handler_args)
- # return self
-
- # def __deepcopy__(self, memo):
- # # memo is a dict of id's to copies already made during the current call
- # # Check if the object is already copied
- # if id(self) in memo:
- # return memo[id(self)]
-
- # print(f"Deep copying {self.__class__.__name__}...")
-
- # new_copy = copy.copy(self)
- # memo[id(self)] = new_copy
-
- # for k, v in self.__dict__.items():
- # print(f"Copying attribute {k} of type {type(v)}...")
- # setattr(new_copy, k, copy.deepcopy(v, memo))
- # print("Done")
-
- # return new_copy
def batch(
self,