MCPcopy Create free account
hub / github.com/amazon-science/patchcore-inspection / run

Method run

src/patchcore/sampler.py:23–26  ·  view source on GitHub ↗
(
        self, features: Union[torch.Tensor, np.ndarray]
    )

Source from the content-addressed store, hash-verified

21
22 @abc.abstractmethod
23 def run(
24 self, features: Union[torch.Tensor, np.ndarray]
25 ) -> Union[torch.Tensor, np.ndarray]:
26 pass
27
28 def _store_type(self, features: Union[torch.Tensor, np.ndarray]) -> None:
29 self.features_is_numpy = isinstance(features, np.ndarray)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected