Browse Source

TensorShape: Fixed rare case when passing only None

tags/v0.12
Eli Belash 6 years ago
parent
commit
cc65ae5ca2
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/TensorFlowNET.Core/Tensors/TensorShape.cs

+ 3
- 0
src/TensorFlowNET.Core/Tensors/TensorShape.cs View File

@@ -92,6 +92,9 @@ namespace Tensorflow
case long _:
arr = dims;
break;
case null: //==Binding.None
arr = dims;
break;
default:
Binding.print(dims);
throw new ArgumentException(nameof(dims));


Loading…
Cancel
Save