Skip to content

Commit 0f49cc9

Browse files
authored
Merge pull request #124 from Esther2013/master
#119 #120 #121 #122 #123
2 parents c45361c + db8fdcb commit 0f49cc9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Runtime.InteropServices;
4+
using System.Text;
5+
6+
namespace Tensorflow
7+
{
8+
public partial class c_api
9+
{
10+
/// <summary>
11+
/// Return a new options object.
12+
/// </summary>
13+
/// <returns></returns>
14+
[DllImport(TensorFlowLibName)]
15+
public static extern IntPtr TFE_NewContextOptions();
16+
17+
/// <summary>
18+
/// Destroy an options object.
19+
/// </summary>
20+
/// <param name="options"></param>
21+
[DllImport(TensorFlowLibName)]
22+
public static extern void TFE_DeleteContextOptions(IntPtr options);
23+
24+
[DllImport(TensorFlowLibName)]
25+
public static extern IntPtr TFE_NewContext(IntPtr opts, IntPtr status);
26+
27+
[DllImport(TensorFlowLibName)]
28+
public static extern void TFE_DeleteContext(IntPtr ctx);
29+
30+
[DllImport(TensorFlowLibName)]
31+
public static extern IntPtr TFE_NewOp(IntPtr ctx, string op_or_function_name, IntPtr status);
32+
}
33+
}

0 commit comments

Comments
 (0)