MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / FakeTorch

Class FakeTorch

tests/test_llm_parser.py:717–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715 )
716
717 class FakeTorch:
718 @staticmethod
719 def inference_mode():
720 class _Context:
721 def __enter__(self):
722 return None
723
724 def __exit__(self, exc_type, exc, tb):
725 return False
726
727 return _Context()
728
729 monkeypatch.setattr(llm_parser, "torch", FakeTorch)
730

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected