Skip to content

tf.ConfigProto usage on TF 2.0 #25446

@samsamoa

Description

@samsamoa

On TensorFlow 1.X, there are various important parameters set by passing tf.ConfigProto to tf.Session(config=...) or tf.enable_eager_execution(config=...). For example, to use NCCL, it is useful to set the visible GPUs for a session with config.gpu_options.visible_device_list.

My understanding is that TensorFlow 2.0 no longer has a way to set this configuration — both tf.Session and tf.enable_eager_execution are gone. Is there an alternate way to set this config?

Related StackOverflow question
CC @girving @allenlavoie

Metadata

Metadata

Assignees

Labels

TF 2.0Issues relating to TensorFlow 2.0type:othersissues not falling in bug, perfromance, support, build and install or feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions