Weighting.to_impl

Weighting.to_impl(impl)[source]

Return a version of the same weighting, but with any internal arrays stored with a different array backend (e.g. 'pytorch' instead of 'numpy').