Browse Source

Merge pull request #124 from Esther2013/master

#119 #120 #121 #122 #123
tags/v0.1.0-Tensor
Haiping GitHub 6 years ago
parent
commit
0f49cc95e8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions
  1. +33
    -0
      src/TensorFlowNET.Core/Eager/c_api.eager.cs

+ 33
- 0
src/TensorFlowNET.Core/Eager/c_api.eager.cs View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{
public partial class c_api
{
/// <summary>
/// Return a new options object.
/// </summary>
/// <returns></returns>
[DllImport(TensorFlowLibName)]
public static extern IntPtr TFE_NewContextOptions();

/// <summary>
/// Destroy an options object.
/// </summary>
/// <param name="options"></param>
[DllImport(TensorFlowLibName)]
public static extern void TFE_DeleteContextOptions(IntPtr options);

[DllImport(TensorFlowLibName)]
public static extern IntPtr TFE_NewContext(IntPtr opts, IntPtr status);

[DllImport(TensorFlowLibName)]
public static extern void TFE_DeleteContext(IntPtr ctx);

[DllImport(TensorFlowLibName)]
public static extern IntPtr TFE_NewOp(IntPtr ctx, string op_or_function_name, IntPtr status);
}
}

Loading…
Cancel
Save