forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc_api.cs
More file actions
23 lines (20 loc) · 657 Bytes
/
c_api.cs
File metadata and controls
23 lines (20 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
namespace Tensorflow
{
/// <summary>
/// C API for TensorFlow.
///
/// The API leans towards simplicity and uniformity instead of convenience
/// since most usage will be by language specific wrappers.
/// </summary>
public static partial class c_api
{
public const string TensorFlowLibName = "tensorflow";
public delegate void Deallocator(IntPtr data, IntPtr size, ref bool deallocatorData);
[DllImport(TensorFlowLibName)]
public static unsafe extern IntPtr TF_Version();
}
}