Skip to content

Commit 9b32ca9

Browse files
committed
TensorFlow 1.4 C API bindings + docs
1 parent 1ebcf43 commit 9b32ca9

File tree

5 files changed

+382
-16
lines changed

5 files changed

+382
-16
lines changed

SampleTest/LowLevelTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class AttributeTest : IDisposable
250250
static int counter;
251251
public TFStatus Status;
252252
TFGraph graph;
253-
TFOperationDesc desc;
253+
//TFOperationDesc desc;
254254

255255
public AttributeTest ()
256256
{
@@ -331,7 +331,7 @@ public void AddControlInput ()
331331
runner.AddTarget (noop);
332332
runner.Run ();
333333
throw new Exception ("This should have thrown an exception");
334-
} catch (Exception e) {
334+
} catch (Exception) {
335335
Console.WriteLine ("Success, got the expected exception when using tensorflow control inputs to assert");
336336
}
337337
}

TensorFlowSharp/Buffer.cs

+3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public class TFBuffer : TFDisposable
7474

7575
internal TFBuffer (IntPtr handle) : base (handle) { }
7676

77+
/// <summary>
78+
/// Initializes a new instance of the <see cref="T:TensorFlow.TFBuffer"/> class.
79+
/// </summary>
7780
unsafe public TFBuffer () : base ((IntPtr)TF_NewBuffer ())
7881
{
7982
}

TensorFlowSharp/Queue.cs

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public QueueBase (TFSession session)
2525
Session = session ?? throw new ArgumentNullException (nameof (session));
2626
}
2727

28+
/// <summary>
29+
/// The session that this QueueBased was created for.
30+
/// </summary>
31+
/// <value>The session.</value>
2832
protected TFSession Session { get; private set; }
2933

3034
/// <summary>

TensorFlowSharp/Tensor.cs

+4-8
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,10 @@ public object GetValue (bool jagged = false)
11181118
}
11191119
}
11201120

1121+
/// <summary>
1122+
/// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:TensorFlow.TFTensor"/>.
1123+
/// </summary>
1124+
/// <returns>A <see cref="T:System.String"/> that represents the current <see cref="T:TensorFlow.TFTensor"/>.</returns>
11211125
public override string ToString ()
11221126
{
11231127
var n = NumDims;
@@ -1134,14 +1138,6 @@ public override string ToString ()
11341138
return sb.ToString ();
11351139
}
11361140

1137-
1138-
1139-
1140-
1141-
1142-
1143-
1144-
11451141
private static int [] getLength (Array array, bool deep = true, bool max = false)
11461142
{
11471143
// This function gets the length of all dimensions in a multidimensional, jagged, or mixed array.

0 commit comments

Comments
 (0)