You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated Tensorflow.Net to 0.70.2 with Tensorflow 2.7.0. (#7472)
* Updated Tensorflow.Net to 0.70.2 with Tensorflow 2.7.0.
NumSharp replaced with Tensorflow.NumPy.
TensorShape replaced with Shape, Shape object has dimensions as 64 bit long, check added for casting to 32 bit int alsoTensor constructor using SafeTensorHandle/DangerousGetHandle and TF_DataType not required when casting.
Added StringTensorFactory to wrap addition tensorflow.dll methods required to create Tensors from string based input.
* Common code to ArrayUtils, dotnet added to Sdk install to resolve CI issues.
* Temporarily omit GPU packages
* Removing installation of .NET 9.0
* Update TensorFlow.NET to 0.150.0
* Rollback TensorFlow.NET to 0.110.1 to workaround strong name signing issue
Tensorflow.NET stopped being strong name signed in 0.110.2. See SciSharp/TensorFlow.NET#1296
* Rollback TensorFlow.Net to 0.100.4
After this version a dependency was introduced on OneOf which is not strong name signed and breaks use on .NETFramework.
* Rollback TensorFlow.Net to 0.100.2
We can't use newer than 0.100.4 due to strong naming issues.
There's a bug in the Session.Dispose introduced by SciSharp/TensorFlow.NET@a7c9a75 (in 0.100.4) which was later fixed in SciSharp/TensorFlow.NET@58de537 but that's after the strong naming regression.
* Use different version for TensorFlow GPU packages
Workaround SciSharp/TensorFlow.NET#1294
* Remove VectorDataViewType overload that accepts long[]
* Update Microsoft.ML.Samples.GPU.csproj
* Workaround build error from TF-GPU package
* Update src/Microsoft.ML.TensorFlow/TensorflowTransform.cs
* Avoid finalizer crash in tests
The TensorFlow.NET session finalizer has a bug where it will crash if run after the finalizer for the `tensorflow` type.
Avoid that by ensuring we dispose all Session objects.
* Fix a couple more missing dispose
---------
Co-authored-by: Ross Halliday <[email protected]>
Co-authored-by: Eric StJohn <[email protected]>
// If the column is one dimension we make sure that the total size of the TF shape matches.
584
584
// Compute the total size of the known dimensions of the shape.
585
-
intvalCount=1;
585
+
longvalCount=1;
586
586
intnumOfUnkDim=0;
587
587
foreach(varsinshape)
588
588
{
@@ -592,7 +592,7 @@ public Mapper(TensorFlowTransformer parent, DataViewSchema inputSchema) :
592
592
numOfUnkDim++;
593
593
}
594
594
// The column length should be divisible by this, so that the other dimensions can be integral.
595
-
inttypeValueCount=type.GetValueCount();
595
+
longtypeValueCount=type.GetValueCount();
596
596
if(typeValueCount%valCount!=0)
597
597
throwContracts.Except($"Input shape mismatch: Input '{_parent.Inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
598
598
@@ -616,22 +616,22 @@ public Mapper(TensorFlowTransformer parent, DataViewSchema inputSchema) :
616
616
throwContracts.Except($"Input shape mismatch: Input '{_parent.Inputs[i]}' has shape {originalShape.ToString()}, but input data is of length {typeValueCount}.");
0 commit comments