W3cubDocs

/TensorFlow Python

tf.ConfigProto

class tf.ConfigProto

Child Classes

class DeviceCountEntry

Properties

allow_soft_placement

Magic attribute generated for "allow_soft_placement" proto field.

device_count

Magic attribute generated for "device_count" proto field.

device_filters

Magic attribute generated for "device_filters" proto field.

gpu_options

Magic attribute generated for "gpu_options" proto field.

graph_options

Magic attribute generated for "graph_options" proto field.

inter_op_parallelism_threads

Magic attribute generated for "inter_op_parallelism_threads" proto field.

intra_op_parallelism_threads

Magic attribute generated for "intra_op_parallelism_threads" proto field.

log_device_placement

Magic attribute generated for "log_device_placement" proto field.

operation_timeout_in_ms

Magic attribute generated for "operation_timeout_in_ms" proto field.

placement_period

Magic attribute generated for "placement_period" proto field.

rpc_options

Magic attribute generated for "rpc_options" proto field.

session_inter_op_thread_pool

Magic attribute generated for "session_inter_op_thread_pool" proto field.

use_per_session_threads

Magic attribute generated for "use_per_session_threads" proto field.

Methods

ByteSize()

Clear()

ClearExtension(extension_handle)

ClearField(field_name)

CopyFrom(other_msg)

Copies the content of the specified message into the current message.

The method clears the current message and then merges the specified message using MergeFrom.

Args:

  • other_msg: Message to copy into the current one.

DiscardUnknownFields()

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(s)

HasExtension(extension_handle)

HasField(field_name)

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()

MergeFrom(msg)

MergeFromString(serialized)

ParseFromString(serialized)

Parse serialized protocol buffer data into this message.

Like MergeFromString(), except we clear the object first and do not return the value that MergeFromString returns.

RegisterExtension(extension_handle)

SerializePartialToString()

SerializeToString()

SetInParent()

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

WhichOneof(oneof_name)

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

__init__(**kwargs)

Class Members

ALLOW_SOFT_PLACEMENT_FIELD_NUMBER

DESCRIPTOR

DEVICE_COUNT_FIELD_NUMBER

DEVICE_FILTERS_FIELD_NUMBER

GPU_OPTIONS_FIELD_NUMBER

GRAPH_OPTIONS_FIELD_NUMBER

INTER_OP_PARALLELISM_THREADS_FIELD_NUMBER

INTRA_OP_PARALLELISM_THREADS_FIELD_NUMBER

LOG_DEVICE_PLACEMENT_FIELD_NUMBER

OPERATION_TIMEOUT_IN_MS_FIELD_NUMBER

PLACEMENT_PERIOD_FIELD_NUMBER

RPC_OPTIONS_FIELD_NUMBER

SESSION_INTER_OP_THREAD_POOL_FIELD_NUMBER

USE_PER_SESSION_THREADS_FIELD_NUMBER

Defined in tensorflow/core/protobuf/config_pb2.py.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/ConfigProto