TensorFlow 2.0 RC is available Learn more

tf.ConfigProto

View source on GitHub

Class ConfigProto

Aliases:

  • Class tf.compat.v1.ConfigProto

__init__

__init__(**kwargs)

Child Classes

class DeviceCountEntry

class Experimental

Properties

allow_soft_placement

bool allow_soft_placement

cluster_def

ClusterDef cluster_def

device_count

repeated DeviceCountEntry device_count

device_filters

repeated string device_filters

experimental

Experimental experimental

gpu_options

GPUOptions gpu_options

graph_options

GraphOptions graph_options

inter_op_parallelism_threads

int32 inter_op_parallelism_threads

intra_op_parallelism_threads

int32 intra_op_parallelism_threads

isolate_session_state

bool isolate_session_state

log_device_placement

bool log_device_placement

operation_timeout_in_ms

int64 operation_timeout_in_ms

placement_period

int32 placement_period

rpc_options

RPCOptions rpc_options

session_inter_op_thread_pool

repeated ThreadPoolOptionProto session_inter_op_thread_pool

use_per_session_threads

bool use_per_session_threads

Methods

ByteSize

ByteSize()

Clear

Clear()

ClearField

ClearField(field_name)

DiscardUnknownFields

DiscardUnknownFields()

FindInitializationErrors

FindInitializationErrors()

Finds required fields which are not initialized.

Returns:

A list of strings. Each string is a path to an uninitialized field from the top-level message, e.g. "foo.bar[5].baz".

FromString

@staticmethod
FromString(s)

HasField

HasField(field_name)

IsInitialized

IsInitialized(errors=None)

Checks if all required fields of a message are set.

Args:

  • errors: A list which, if provided, will be populated with the field paths of all missing required fields.

Returns:

True iff the specified message has all required fields set.

ListFields

ListFields()

MergeFrom

MergeFrom(msg)

MergeFromString

MergeFromString(serialized)

RegisterExtension

@staticmethod
RegisterExtension(extension_handle)

SerializePartialToString

SerializePartialToString(**kwargs)

SerializeToString

SerializeToString(**kwargs)

SetInParent

SetInParent()

Sets the _cached_byte_size_dirty bit to true, and propagates this to our listener iff this was a state change.

UnknownFields

UnknownFields()

WhichOneof

WhichOneof(oneof_name)

Returns the name of the currently set field inside a oneof, or None.

__eq__

__eq__(other)