MCPcopy
hub / github.com/HIT-SCIR/ltp / load_state_dict

Method load_state_dict

python/interface/ltp/nerual.py:82–83  ·  view source on GitHub ↗
(self, state_dict: Mapping[str, Any], strict: bool = True)

Source from the content-addressed store, hash-verified

80 self.post[task] = getattr(self, f"_{task}_post")
81
82 def load_state_dict(self, state_dict: Mapping[str, Any], strict: bool = True):
83 self.model.load_state_dict(state_dict, strict=strict)
84
85 @property
86 def version(self):

Callers 1

_from_pretrainedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected