SciSharp / ICSharpCore

Jupyter kernel in C# .NET Core which is the standard interface for SciSharp STACK.
Apache License 2.0
76 stars 17 forks source link

Sample about how to use ICSharpCore #2

Open Oceania2018 opened 5 years ago

Oceania2018 commented 5 years ago

Write a sample project to show developers how to use ICSharpCore.

https://github.com/SciSharp/TensorFlow.NET/blob/master/test/TensorFlowNET.Examples/HelloWorld.cs

kerryjiang commented 5 years ago
var str = "Hello, TensorFlow.NET!";
var hello = tf.constant(str);

// Start tf session
using(var sess = tf.Session())
{
    // Run the op
    return sess.run(hello);
}
Oceania2018 commented 5 years ago

It works.

image

noobwu commented 5 years ago

image

noobwu commented 5 years ago

image

kerryjiang commented 5 years ago

Did you install the ICSharpCore correctly?

Could you show the output of the command "jupyter kernelspec list"?

I tried in my local (Mac OS) just now and it works. Could you tell me your environment?

Oceania2018 commented 5 years ago

@noobwu It's a good place to start with a docker container. Try out SciSharpCube.

kerryjiang commented 5 years ago

Try this docker image: https://cloud.docker.com/u/scisharpstack/repository/docker/scisharpstack/scisharpcube scisharpstack/scisharpcube:0.1

GeorgeS2019 commented 5 years ago

It is installed correctly image

But it fails with static tf.

image

GeorgeS2019 commented 5 years ago

image