This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C-API functions TF_StringDecode, TF_StringEncode, and TF_StringEncodedSize are no longer relevant and have been removed; | |
see core/platform/ctstring.h for string access/modification in C. | |
●TF_CAPI_EXPORT extern void TF_StringInit(TF_TString *t); | |
■inline void TF_TString_Init(TF_TString *str); | |
Initialize a new tstring. | |
This must be called before using any function below. | |
新しいtstringを初期化します。 | |
以下の関数を使用する前に必ず呼び出す必要があります。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2017 The TensorFlow Authors. All Rights Reserved. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TF_Version : 2.4.0 | |
_Arg | |
_ArrayToList | |
_ConfigureDistributedTPU | |
_DeviceArg | |
_DeviceRetval | |
_DisconnectHostFromDistributedTPUSystem | |
_FusedBatchNormEx | |
_FusedConv2D | |
_FusedDepthwiseConv2dNative |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
namespace MinTensorFlow | |
{ | |
[StructLayout(LayoutKind.Sequential)] | |
internal struct TF_Status | |
{ | |
IntPtr status; //tensorflow::Status status; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFrameworks>netstandard1.6;netstandard2.0;netstandard2.1</TargetFrameworks> | |
<DefineConstants Condition="$(TargetFramework.Contains('netstandard')) and $(TargetFramework.Length) > 12 and | |
$([System.Version]::Parse('$(TargetFramework.Replace('netstandard',''))').CompareTo($([System.Version]::Parse('2.1')))) >= 0"> | |
NETSTANDARD2_1_OR_GREATER | |
</DefineConstants> | |
</PropertyGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace ConsoleApp1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Drawing; | |
using System.Windows.Forms; | |
namespace WindowsFormsApp1 | |
{ | |
public partial class Form1 : Form | |
{ | |
Point posPrevious; | |
public Form1() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
namespace ConsoleApp75 | |
{ | |
class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal static class ArrayExtension | |
{ | |
[SuppressUnmanagedCodeSecurity] | |
[DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)] | |
public static extern void CopyMemory(IntPtr dest, IntPtr src, int count); | |
public static Array Reshape(this Array array, params int[] shape) | |
{ | |
Array result = Array.CreateInstance(array.GetType().GetElementType(), shape); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace ConsoleApp60 | |
{ | |
class Program |
NewerOlder