MCPcopy Create free account
hub / github.com/activeloopai/deeplake / empty

Function empty

python/deeplake/__init__.py:214–226  ·  view source on GitHub ↗

.. deprecated:: 4.0.0

(*args, **kwargs)

Source from the content-addressed store, hash-verified

212
213
214def empty(*args, **kwargs):
215 """
216 .. deprecated:: 4.0.0
217 """
218 raise Exception(
219 """
220The API for Deep Lake 4.0 has changed significantly, including the `empty` method being replaced by `create`.
221To continue using Deep Lake 3.x, use `pip install "deeplake<4"`.
222For information on migrating your code, see https://docs.deeplake.ai/latest/details/v3_conversion/
223 """.replace(
224 "\n", " "
225 ).strip()
226 )
227
228
229def convert(

Callers 3

frontMethod · 0.85
backMethod · 0.85
getMethod · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected