Browse Source

tf.placeholder: Added overload with object[] shape

tags/v0.12
Eli Belash 6 years ago
parent
commit
91a19c2dcf
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/TensorFlowNET.Core/tensorflow.cs

+ 5
- 0
src/TensorFlowNET.Core/tensorflow.cs View File

@@ -63,6 +63,11 @@ namespace Tensorflow
return gen_array_ops.placeholder(dtype, shape, name);
}

public unsafe Tensor placeholder(TF_DataType dtype, object[] shape = null, string name = null)
{
return placeholder(dtype, new TensorShape(shape), name);
}

public void enable_eager_execution()
{
// contex = new Context();


Loading…
Cancel
Save