Class: Tensorflow::Status
- Inherits:
-
Object
- Object
- Tensorflow::Status
- Defined in:
- lib/tensorflow/status.rb
Overview
Status holds error information returned by TensorFlow. We can use status to get error and even display the error messages from tensorflow.
Instance Attribute Summary collapse
-
#c ⇒ Object
Returns the value of attribute c.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize ⇒ Status
constructor
A new instance of Status.
- #newstatus ⇒ Object
- #String ⇒ Object
Constructor Details
#initialize ⇒ Status
Returns a new instance of Status.
5 6 7 |
# File 'lib/tensorflow/status.rb', line 5 def initialize self.c = Tensorflow::TF_NewStatus() end |
Instance Attribute Details
#c ⇒ Object
Returns the value of attribute c.
4 5 6 |
# File 'lib/tensorflow/status.rb', line 4 def c @c end |
Instance Method Details
#code ⇒ Object
13 14 15 |
# File 'lib/tensorflow/status.rb', line 13 def code Tensorflow::TF_GetCode(c) end |
#newstatus ⇒ Object
9 10 11 |
# File 'lib/tensorflow/status.rb', line 9 def newstatus self.c = Tensorflow::TF_NewStatus() end |
#String ⇒ Object
17 18 19 |
# File 'lib/tensorflow/status.rb', line 17 def String Tensorflow::TF_Message(c) end |