How to use the numbagg.cache.cached_property function in numbagg

To help you get started, we’ve selected a few numbagg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shoyer / numbagg / numbagg / decorators.py View on Github external
    @cached_property
    def _jit_func(self):
        vectorize = numba.jit(self.signature, nopython=True)
        return vectorize(self.func)
github shoyer / numbagg / numbagg / decorators.py View on Github external
    @cached_property
    def gufunc(self):
        gufunc_sig = gufunc_string_signature(self.signature[0])
        vectorize = numba.guvectorize(self.signature, gufunc_sig, nopython=True)
        return vectorize(self.func)
github shoyer / numbagg / numbagg / decorators.py View on Github external
    @cached_property
    def transformed_func(self):
        return rewrite_ndreduce(self.func)