-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tensor: Rewrite Creation to fix heap corruption.
TensorTest: Added Unit tests for more coverage, reformatted file. c_api.tensor: Added overloads for TF_NewTensor that does not have deallocator parameters. BaseSession: Removed disposal immediately after TF_SessionRun call. c_api.DeallocatorArgs: Added DeallocatorArgs.Empty
- Loading branch information
Showing
8 changed files
with
365 additions
and
329 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Tensorflow/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace Tensorflow | ||
{ | ||
/// <summary> | ||
/// Used internally to | ||
/// </summary> | ||
public enum AllocationType | ||
{ | ||
None = 0, | ||
/// <summary> | ||
/// Allocation was done by passing in a pointer, might be also holding reference to a C# object. | ||
/// </summary> | ||
FromPointer = 1, | ||
/// <summary> | ||
/// Allocation was done by calling c_api.TF_AllocateTensor or TF decided it has to copy data during c_api.TF_NewTensor. <br></br> | ||
/// Deallocation is handled solely by Tensorflow. | ||
/// </summary> | ||
Tensorflow = 2, | ||
/// <summary> | ||
/// Allocation was done by Marshal.AllocateHGlobal | ||
/// </summary> | ||
Marshal = 3, | ||
/// <summary> | ||
/// Allocation was done by GCHandle.Alloc | ||
/// </summary> | ||
GCHandle = 4, | ||
} | ||
} |
Oops, something went wrong.