tf.RunOptions

__init__

__init__(**kwargs)

Child Classes

class Experimental

Properties

debug_options

DebugOptions debug_options

experimental

Experimental experimental

inter_op_thread_pool

int32 inter_op_thread_pool

output_partition_graphs

bool output_partition_graphs

report_tensor_allocations_upon_oom

bool report_tensor_allocations_upon_oom

timeout_in_ms

int64 timeout_in_ms

trace_level

TraceLevel trace_level

Methods

ByteSize

ByteSize()

Clear

Clear()

ClearField

ClearField(field_name)

DiscardUnknownFields

DiscardUnknownFields()

FindInitializationErrors

FindInitializationErrors()

查找未初始化的必需字段。

返回值:

  • 字符串列表。每个字符串是从顶级消息到未初始化字段的路径,例如。“foo.bar [5] .baz”。

FromString

@staticmethod
FromString(s)

HasField

HasField(field_name)

IsInitialized

IsInitialized(errors=None)

检查是否设置了消息的所有必需字段。

可能产生的异常:

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

返回值:

  • 如果指定的消息已设置所有必需字段,则为True。

ListFields

ListFields()

MergeFrom

MergeFrom(msg)

MergeFromString

MergeFromString(serialized)

RegisterExtension

@staticmethod
RegisterExtension(extension_handle)

SerializePartialToString

SerializePartialToString(**kwargs)

SerializeToString

SerializeToString(**kwargs)

SetInParent

SetInParent()

将_cached_byte_size_dirty位设置为true,并将其传播给侦听器(如果这是状态更改)。

UnknownFields

UnknownFields()

WhichOneof

WhichOneof(oneof_name)

返回其中一个或None中当前设置字段的名称。

__eq__

__eq__(other)

Class Members

  • FULL_TRACE = 3
  • HARDWARE_TRACE = 2
  • NO_TRACE = 0
  • SOFTWARE_TRACE = 1
  • TraceLevel

你可能感兴趣的:(TensorFlow)