MCPcopy Create free account
hub / github.com/TabbyML/tabby / numpy

Method numpy

python/ctranslate2/specs/model_spec.py:649–650  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

647
648 @abc.abstractmethod
649 def numpy(self) -> np.ndarray:
650 raise NotImplementedError()
651
652 def equal(self, other) -> bool:
653 return type(self) is type(other) and self._equal(other)

Callers 15

_to_numpyFunction · 0.45
_check_generator_logitsFunction · 0.45
test_layer_spec_validateFunction · 0.45
test_int8_quantizationFunction · 0.45
test_fp16_weightsFunction · 0.45
smooth_activationFunction · 0.45
set_layer_normFunction · 0.45
set_linearFunction · 0.45
set_embeddingsFunction · 0.45

Calls

no outgoing calls

Tested by 8

_to_numpyFunction · 0.36
_check_generator_logitsFunction · 0.36
test_layer_spec_validateFunction · 0.36
test_int8_quantizationFunction · 0.36
test_fp16_weightsFunction · 0.36