Skip to content

Commit f9a6d4e

Browse files
committed
Small touchups, upgrade to 4.6.1
1 parent c963efc commit f9a6d4e

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

Learn/Learn.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputType>Library</OutputType>
88
<RootNamespace>Learn</RootNamespace>
99
<AssemblyName>Learn</AssemblyName>
10-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
10+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1313
<DebugSymbols>true</DebugSymbols>

SampleTest/SampleTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<OutputType>Exe</OutputType>
88
<RootNamespace>SampleTest</RootNamespace>
99
<AssemblyName>SampleTest</AssemblyName>
10-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
10+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1313
<DebugSymbols>true</DebugSymbols>

TensorFlowSharp/Tensorflow.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,13 @@ internal override void NativeDispose (IntPtr handle)
19471947
}
19481948
}
19491949

1950+
/// <summary>
1951+
/// The data type for a specific tensor.
1952+
/// </summary>
1953+
/// <remarks>
1954+
/// Tensors have uniform data types, all the elements of the tensor are of this
1955+
/// type and they dictate how TensorFlow will treat the data stored.
1956+
/// </remarks>
19501957
public enum TFDataType : uint
19511958
{
19521959
Float = 1,
@@ -2129,14 +2136,15 @@ public enum TFAttributeType : uint
21292136
[StructLayout (LayoutKind.Sequential)]
21302137
public struct TFAttributeMetadata
21312138
{
2132-
public byte IsList;
2139+
byte isList;
2140+
public bool IsList => isList != 0;
21332141
public long ListSize;
21342142
public TFAttributeType Type;
21352143
public long TotalSize;
21362144

21372145
public override string ToString ()
21382146
{
2139-
return string.Format ($"[TFAttributeMetadata IsList={IsList != 0?true:false} ListSize={ListSize} Type={Type} TotalSize={TotalSize}]");
2147+
return string.Format ($"[TFAttributeMetadata IsList={IsList} ListSize={ListSize} Type={Type} TotalSize={TotalSize}]");
21402148
}
21412149
}
21422150

0 commit comments

Comments
 (0)