MCPcopy Create free account
hub / github.com/lingeringlight/START / load_pretrained

Method load_pretrained

models_mamba.py:388–389  ·  view source on GitHub ↗
(self, checkpoint_path, prefix="")

Source from the content-addressed store, hash-verified

386
387 @torch.jit.ignore()
388 def load_pretrained(self, checkpoint_path, prefix=""):
389 _load_weights(self, checkpoint_path, prefix)
390
391 def forward_features(self, x, inference_params=None, if_random_cls_token_position=False, if_random_token_rank=False):
392 # taken from https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/vision_transformer.py

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected