class_docstr: Context-manager that enabled/disables arithmetic operators on TensorLists.
  Can also be used as a function with global setting.
  
  Examples:
      >>> tl = dali.tensors.TensorListCPU(...)
      >>> with dali.experimental.eager.arithmetic(enabled=True):
      ...     out = tl + 1
  
      >>> dali.experimental.eager.arithmetic(enabled=True)
      >>> tl = dali.tensors.TensorListCPU(...)
      >>> out = tl ** 2
class_docstr_tok: ["Context-manager","that","enabled\/disables","arithmetic","operators","on","TensorLists",".","Can","also","be","used","as","a","function","with","global","setting",".","Examples",":",">",">",">","tl","=","dali.tensors.TensorListCPU","(","...",")",">",">",">","with","dali.experimental.eager.arithmetic","(","enabled=True",")",":","...","out","=","tl","+","1",">",">",">","dali.experimental.eager.arithmetic","(","enabled=True",")",">",">",">","tl","=","dali.tensors.TensorListCPU","(","...",")",">",">",">","out","=","tl","*","*","2"]
code: def __init__(self, enabled=True):
      self.prev = arithmetic._enabled
      arithmetic._enabled = enabled
  
file_path: DALI/dali/python/nvidia/dali/experimental/eager/__init__.py
imports: from .None import math
  from nvidia.dali._utils.eager_utils import _create_module_class
label_desc: Use image node_id 1 to create a new arithmetic object  with example: obj = arithmetic(enabled)