diff --git a/README.md b/README.md
index 81804ccb..99c9b027 100644
--- a/README.md
+++ b/README.md
@@ -57,4 +57,8 @@ using(var sess = tf.Session())
Read the docs & book [The Definitive Guide to Tensorflow.NET](https://tensorflownet.readthedocs.io/en/latest/FrontCover.html).
-Star me or raise issue on [Github](https://github.com/SciSharp/TensorFlow.NET) feel free.
\ No newline at end of file
+Star me or raise issue on [Github](https://github.com/SciSharp/TensorFlow.NET) feel free.
+
+Scan QR code to join TIM group:
+
+
\ No newline at end of file
diff --git a/docs/TIM.png b/docs/TIM.png
new file mode 100644
index 00000000..55e2ebbe
Binary files /dev/null and b/docs/TIM.png differ
diff --git a/src/TensorFlowNET.Core/Sessions/BaseSession.cs b/src/TensorFlowNET.Core/Sessions/BaseSession.cs
index 1bdbb257..212ff3a3 100644
--- a/src/TensorFlowNET.Core/Sessions/BaseSession.cs
+++ b/src/TensorFlowNET.Core/Sessions/BaseSession.cs
@@ -146,6 +146,12 @@ namespace Tensorflow
var str = UTF8Encoding.Default.GetString(bytes, 9, bytes.Length - 9);
nd = np.array(str).reshape();
break;
+ case TF_DataType.TF_INT16:
+ var shorts = new short[tensor.size];
+ for (ulong i = 0; i < tensor.size; i++)
+ shorts[i] = *(short*)(c_api.TF_TensorData(output) + (int)(tensor.dataTypeSize * i));
+ nd = np.array(shorts).reshape(ndims);
+ break;
case TF_DataType.TF_INT32:
var ints = new int[tensor.size];
for (ulong i = 0; i < tensor.size; i++)
diff --git a/src/TensorFlowNET.Core/Sessions/Session.cs b/src/TensorFlowNET.Core/Sessions/Session.cs
index 5c416b09..182d0fe3 100644
--- a/src/TensorFlowNET.Core/Sessions/Session.cs
+++ b/src/TensorFlowNET.Core/Sessions/Session.cs
@@ -35,6 +35,11 @@ namespace Tensorflow
public static implicit operator IntPtr(Session session) => session._handle;
public static implicit operator Session(IntPtr handle) => new Session(handle);
+ public void close()
+ {
+ Dispose();
+ }
+
public void Dispose()
{
Options.Dispose();
diff --git a/src/TensorFlowNET.Core/Tensors/Tensor.cs b/src/TensorFlowNET.Core/Tensors/Tensor.cs
index 24542f4f..c4261a19 100644
--- a/src/TensorFlowNET.Core/Tensors/Tensor.cs
+++ b/src/TensorFlowNET.Core/Tensors/Tensor.cs
@@ -207,6 +207,17 @@ namespace Tensorflow
return tensor;
}
+ ///
+ /// Evaluates this tensor in a `Session`.
+ ///
+ /// A dictionary that maps `Tensor` objects to feed values.
+ /// The `Session` to be used to evaluate this tensor.
+ ///
+ public NDArray eval(dynamic feed_dict = null, Session session = null)
+ {
+ return ops._eval_using_default_session(new Tensor[] { this }, feed_dict, Graph, session)[0];
+ }
+
public TF_DataType ToTFDataType(Type type)
{
switch (type.Name)
diff --git a/src/TensorFlowNET.Core/ops._DefaultStack.cs b/src/TensorFlowNET.Core/ops._DefaultStack.cs
new file mode 100644
index 00000000..35a938f5
--- /dev/null
+++ b/src/TensorFlowNET.Core/ops._DefaultStack.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Tensorflow
+{
+ public partial class ops
+ {
+ _DefaultStack _default_session_stack = new _DefaultStack();
+
+ public class _DefaultStack : IPython
+ {
+ Stack