@@ -61,9 +61,9 @@ def op(self):
61
61
62
62
*N.B.* If the failed op was synthesized at runtime, e.g. a `Send`
63
63
or `Recv` op, there will be no corresponding
64
- [`Operation`](../../api_docs/python/framework.md# Operation)
64
+ @{tf. Operation}
65
65
object. In that case, this will return `None`, and you should
66
- instead use the [`OpError.node_def`](# OpError.node_def) to
66
+ instead use the @{tf. OpError.node_def} to
67
67
discover information about the op.
68
68
69
69
Returns:
@@ -156,10 +156,10 @@ class CancelledError(OpError):
156
156
"""Raised when an operation or step is cancelled.
157
157
158
158
For example, a long-running operation (e.g.
159
- [`queue.enqueue()`](../../api_docs/python/io_ops.md# QueueBase.enqueue) may be
159
+ @{tf. QueueBase.enqueue} may be
160
160
cancelled by running another operation (e.g.
161
- [`queue.close(cancel_pending_enqueues=True)`](../../api_docs/python/io_ops.md# QueueBase.close) ,
162
- or by [closing the session](../../api_docs/python/client.md# Session.close) .
161
+ @{tf. QueueBase.close} ,
162
+ or by @{tf. Session.close} .
163
163
A step that is running such a long-running operation will fail by raising
164
164
`CancelledError`.
165
165
@@ -194,9 +194,9 @@ class InvalidArgumentError(OpError):
194
194
195
195
This may occur, for example, if an operation is receives an input
196
196
tensor that has an invalid value or shape. For example, the
197
- [` tf.matmul()`](../../api_docs/python/math_ops.md#matmul) op will raise this
197
+ @{ tf.matmul} op will raise this
198
198
error if it receives an input that is not a matrix, and the
199
- [` tf.reshape()`](../../api_docs/python/array_ops.md#reshape) op will raise
199
+ @{ tf.reshape} op will raise
200
200
this error if the new shape does not match the number of elements in the input
201
201
tensor.
202
202
@@ -227,7 +227,7 @@ class NotFoundError(OpError):
227
227
"""Raised when a requested entity (e.g., a file or directory) was not found.
228
228
229
229
For example, running the
230
- [` tf.WholeFileReader.read()`](../../api_docs/python/io_ops.md#WholeFileReader)
230
+ @{ tf.WholeFileReader.read}
231
231
operation could raise `NotFoundError` if it receives the name of a file that
232
232
does not exist.
233
233
@@ -243,7 +243,7 @@ class AlreadyExistsError(OpError):
243
243
"""Raised when an entity that we attempted to create already exists.
244
244
245
245
For example, running an operation that saves a file
246
- (e.g. [` tf.train.Saver.save()`](../../api_docs/python/train.md#Saver.save) )
246
+ (e.g. @{ tf.train.Saver.save} )
247
247
could potentially raise this exception if an explicit filename for an
248
248
existing file was passed.
249
249
@@ -260,7 +260,7 @@ class PermissionDeniedError(OpError):
260
260
"""Raised when the caller does not have permission to run an operation.
261
261
262
262
For example, running the
263
- [` tf.WholeFileReader.read()`](../../api_docs/python/io_ops.md#WholeFileReader)
263
+ @{ tf.WholeFileReader.read}
264
264
operation could raise `PermissionDeniedError` if it receives the name of a
265
265
file for which the user does not have the read file permission.
266
266
@@ -306,7 +306,7 @@ class FailedPreconditionError(OpError):
306
306
"""Operation was rejected because the system is not in a state to execute it.
307
307
308
308
This exception is most commonly raised when running an operation
309
- that reads a [` tf.Variable`](../../api_docs/python/state_ops.md#Variable)
309
+ that reads a @{ tf.Variable}
310
310
before it has been initialized.
311
311
312
312
@@__init__
@@ -322,9 +322,9 @@ class AbortedError(OpError):
322
322
"""The operation was aborted, typically due to a concurrent action.
323
323
324
324
For example, running a
325
- [`queue.enqueue()`](../../api_docs/python/io_ops.md# QueueBase.enqueue)
325
+ @{tf. QueueBase.enqueue}
326
326
operation may raise `AbortedError` if a
327
- [`queue.close()`](../../api_docs/python/io_ops.md# QueueBase.close) operation
327
+ @{tf. QueueBase.close} operation
328
328
previously ran.
329
329
330
330
@@__init__
@@ -339,9 +339,9 @@ class OutOfRangeError(OpError):
339
339
"""Raised when an operation iterates past the valid input range.
340
340
341
341
This exception is raised in "end-of-file" conditions, such as when a
342
- [`queue.dequeue()`](../../api_docs/python/io_ops.md# QueueBase.dequeue)
342
+ @{tf. QueueBase.dequeue}
343
343
operation is blocked on an empty queue, and a
344
- [`queue.close()`](../../api_docs/python/io_ops.md# QueueBase.close)
344
+ @{tf. QueueBase.close}
345
345
operation executes.
346
346
347
347
@@__init__
@@ -358,7 +358,7 @@ class UnimplementedError(OpError):
358
358
359
359
Some operations may raise this error when passed otherwise-valid
360
360
arguments that it does not currently support. For example, running
361
- the [` tf.nn.max_pool()`](../../api_docs/python/nn.md#max_pool) operation
361
+ the @{ tf.nn.max_pool} operation
362
362
would raise this error if pooling was requested on the batch dimension,
363
363
because this is not yet supported.
364
364
@@ -403,7 +403,7 @@ class DataLossError(OpError):
403
403
"""Raised when unrecoverable data loss or corruption is encountered.
404
404
405
405
For example, this may be raised by running a
406
- [` tf.WholeFileReader.read()`](../../api_docs/python/io_ops.md#WholeFileReader)
406
+ @{ tf.WholeFileReader.read}
407
407
operation, if the file is truncated while it is being read.
408
408
409
409
@@__init__
0 commit comments