@Namespace(value="tensorflow") @NoOffset public static class tensorflow.Status extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Status()
Create a success status.
|
Status(int code,
BytePointer msg)
\brief Create a status with the specified error code and msg as a
human-readable string containing more detailed information.
|
Status(int code,
String msg) |
Status(long size)
Native array allocator.
|
Status(Pointer p)
Pointer cast constructor.
|
Status(tensorflow.Status s)
Copy the specified status.
|
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
boolean |
equals(tensorflow.Status x) |
BytePointer |
error_message() |
void |
IgnoreError() |
boolean |
notEquals(tensorflow.Status x) |
boolean |
ok()
Returns true iff the status indicates success.
|
static tensorflow.Status |
OK() |
tensorflow.Status |
position(long position) |
void |
put(tensorflow.Status s) |
BytePointer |
ToString()
\brief Return a string representation of this status suitable for
printing.
|
void |
Update(tensorflow.Status new_status)
\brief If
ok(), stores new_status into *this. |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Status(Pointer p)
Pointer.Pointer(Pointer).public Status(long size)
Pointer.position(long).public Status()
public Status(@Cast(value="tensorflow::error::Code") int code, @tensorflow.StringPiece BytePointer msg)
public Status(@Cast(value="tensorflow::error::Code") int code, @tensorflow.StringPiece String msg)
public Status(@Const @ByRef tensorflow.Status s)
public tensorflow.Status position(long position)
@Name(value="operator =") public void put(@Const @ByRef tensorflow.Status s)
@ByVal public static tensorflow.Status OK()
@StdString public BytePointer error_message()
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef tensorflow.Status x)
@Cast(value="bool") @Name(value="operator !=") public boolean notEquals(@Const @ByRef tensorflow.Status x)
public void Update(@Const @ByRef tensorflow.Status new_status)
ok(), stores new_status into *this. If !ok(),
preserves the current status, but may augment with additional
information about new_status.
Convenient way of keeping track of the first error encountered.
Instead of:
if (overall_status.ok()) overall_status = new_status
Use:
overall_status.Update(new_status);@StdString public BytePointer ToString()
"OK" for success.public void IgnoreError()
Copyright © 2019. All rights reserved.