Cloud Pak for Data

Cloud Pak for Data

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  TensorFlow - Error

    Posted Mon February 24, 2020 09:01 AM

    Hello Team,

    I have the following packages installed in my environment for IBM Watson Studio (Cloud). I am not able to run the command tf.enable_eager_execution() command. How do I resolve this issue. I am getting the following error.

    /opt/conda/envs/Python36/lib/python3.6/site-packages/tensorflow/python/framework/ops.py in enable_eager_execution(config, device_policy, execution_mode)
       5459         device_policy=device_policy,
       5460         execution_mode=execution_mode,
    -> 5461         server_def=None)
       5462 
       5463 
    
    /opt/conda/envs/Python36/lib/python3.6/site-packages/tensorflow/python/framework/ops.py in enable_eager_execution_internal(config, device_policy, execution_mode, server_def)
       5514     if graph_mode_has_been_used:
       5515       raise ValueError(
    -> 5516           "tf.enable_eager_execution must be called at program startup.")
       5517   context.default_execution_mode = context.EAGER_MODE
       5518   # pylint: disable=protected-access
    
    ValueError: tf.enable_eager_execution must be called at program startup.








    ------------------------------
    Alok Kumar
    ------------------------------

    #CloudPakforDataGroup


  • 2.  RE: TensorFlow - Error

    Posted Mon February 24, 2020 09:42 AM

    Hi Alok,

    This community is dedicated to Cloud Pak for Data and the related services, not Cloud edition of the products.
    Having said that there should be no real difference.  Did you have a look at this?:

    https://github.com/tensorflow/tensorflow/issues/18304

    Thanks



    ------------------------------
    TOMASZ HANUSIAK
    ------------------------------