Skip to content

Commit 91a19c2

Browse files
committed
tf.placeholder: Added overload with object[] shape
1 parent cebc8b4 commit 91a19c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/TensorFlowNET.Core/tensorflow.cs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ public unsafe Tensor placeholder(TF_DataType dtype, TensorShape shape = null, st
6363
return gen_array_ops.placeholder(dtype, shape, name);
6464
}
6565

66+
public unsafe Tensor placeholder(TF_DataType dtype, object[] shape = null, string name = null)
67+
{
68+
return placeholder(dtype, new TensorShape(shape), name);
69+
}
70+
6671
public void enable_eager_execution()
6772
{
6873
// contex = new Context();

0 commit comments

Comments
 (0)