parameters: (device, enable)
docstring: Set if memory growth should be enabled for a PhysicalDevice.
  
    A PhysicalDevice with memory growth set will not allocate all memory on the
    device upfront. Memory growth cannot be configured on a PhysicalDevice with
    virtual devices configured.
  
    For example:
  
    ```python
    physical_devices = tf.config.experimental.list_physical_devices('GPU')
    assert len(physical_devices) > 0, "Not enough GPU hardware devices available"
    tf.config.experimental.set_memory_growth(physical_devices[0], True)
    ```
  
    Args:
      device: PhysicalDevice to configure
      enable: Whether to enable or disable memory growth
docstring_summary: Set if memory growth should be enabled for a PhysicalDevice.
docstring_tokens: Set if memory growth should be enabled for a PhysicalDevice .
function: def set_memory_growth(device, enable):
    """Set if memory growth should be enabled for a PhysicalDevice.
  
    A PhysicalDevice with memory growth set will not allocate all memory on the
    device upfront. Memory growth cannot be configured on a PhysicalDevice with
    virtual devices configured.
  
    For example:
  
    ```python
    physical_devices = tf.config.experimental.list_physical_devices('GPU')
    assert len(physical_devices) > 0, "Not enough GPU hardware devices available"
    tf.config.experimental.set_memory_growth(physical_devices[0], True)
    ```
  
    Args:
      device: PhysicalDevice to configure
      enable: Whether to enable or disable memory growth
    """
    context.context().set_memory_growth(device, enable)
function_tokens: def set_memory_growth ( device , enable ) : context . context ( ) . set_memory_growth ( device , enable )