cf.active_storage

cf.active_storage(*arg)[source]

Whether or not to attempt active storage reductions.

Added in version 3.16.3.

Parameters:
arg: bool or Constant, optional

Provide a value that will apply to all subsequent operations.

Returns:
Constant

The value prior to the change, or the current value if no new value was specified.

Examples

>>> cf.active_storage()
False
>>> with cf.active_storage(True):
...     print(cf.active_storage())
...
True
>>> cf.active_storage()
False
>>> cf.active_storage(True)
False
>>> cf.active_storage()
True