tf.errors.InvalidArgumentError

class tf.errors.InvalidArgumentError Raised when an operation receives an invalid argument. This may occur, for example, if an operation is receives an input tensor that has an invalid value or shape. For example, the tf.matmul() op will raise this error if it receives an input that is not a matrix, and the tf.reshape() op will raise this error if the new shape does not match the number of elements in the input tensor.

tf.errors.InternalError.__init__()

tf.errors.InternalError.__init__(node_def, op, message) Creates an InternalError.

tf.errors.InternalError

class tf.errors.InternalError Raised when the system experiences an internal error. This exception is raised when some invariant expected by the runtime has been broken. Catching this exception is not recommended.

tf.errors.FailedPreconditionError.__init__()

tf.errors.FailedPreconditionError.__init__(node_def, op, message) Creates a FailedPreconditionError.

tf.errors.FailedPreconditionError

class tf.errors.FailedPreconditionError Operation was rejected because the system is not in a state to execute it. This exception is most commonly raised when running an operation that reads a tf.Variable before it has been initialized.

tf.errors.DeadlineExceededError.__init__()

tf.errors.DeadlineExceededError.__init__(node_def, op, message) Creates a DeadlineExceededError.

tf.errors.DeadlineExceededError

class tf.errors.DeadlineExceededError Raised when a deadline expires before an operation could complete. This exception is not currently used.

tf.errors.DataLossError.__init__()

tf.errors.DataLossError.__init__(node_def, op, message) Creates a DataLossError.

tf.errors.DataLossError

class tf.errors.DataLossError Raised when unrecoverable data loss or corruption is encountered. For example, this may be raised by running a tf.WholeFileReader.read() operation, if the file is truncated while it is being read.

tf.errors.CancelledError.__init__()

tf.errors.CancelledError.__init__(node_def, op, message) Creates a CancelledError.