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

Method inference_mode

tests/test_llm_parser.py:719–727  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 1

Calls 1

_ContextClass · 0.85

Tested by

no test coverage detected