Browse Source

fix OpDefLibrary._IsListValue

tags/v0.9
Oceania2018 6 years ago
parent
commit
0ee44bbdde
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      src/TensorFlowNET.Core/Operations/OpDefLibrary.cs

+ 1
- 7
src/TensorFlowNET.Core/Operations/OpDefLibrary.cs View File

@@ -355,13 +355,7 @@ namespace Tensorflow


private bool _IsListValue(object v) private bool _IsListValue(object v)
{ {
switch (v)
{
case Tensor[] val:
return true;
default:
return false;
}
return v.GetType().IsArray;
} }
} }
} }

Loading…
Cancel
Save