From 91a19c2dcf3d6339d1e1f7633faeb6bf64182fad Mon Sep 17 00:00:00 2001 From: Eli Belash Date: Sun, 8 Sep 2019 15:22:14 +0300 Subject: [PATCH] tf.placeholder: Added overload with object[] shape --- src/TensorFlowNET.Core/tensorflow.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/TensorFlowNET.Core/tensorflow.cs b/src/TensorFlowNET.Core/tensorflow.cs index bdb2f537..3f141879 100644 --- a/src/TensorFlowNET.Core/tensorflow.cs +++ b/src/TensorFlowNET.Core/tensorflow.cs @@ -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();