ICSharpCore icon indicating copy to clipboard operation
ICSharpCore copied to clipboard

Sample about how to use ICSharpCore

Open Oceania2018 opened this issue 6 years ago • 9 comments

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

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

Oceania2018 avatar May 02 '19 21:05 Oceania2018

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);
}

kerryjiang avatar May 06 '19 07:05 kerryjiang

It works.

image

Oceania2018 avatar May 07 '19 01:05 Oceania2018

image

noobwu avatar May 12 '19 03:05 noobwu

image

noobwu avatar May 12 '19 05:05 noobwu

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?

kerryjiang avatar May 12 '19 06:05 kerryjiang

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

Oceania2018 avatar May 12 '19 16:05 Oceania2018

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

kerryjiang avatar Jun 01 '19 04:06 kerryjiang

It is installed correctly image

But it fails with static tf.

image

GeorgeS2019 avatar Nov 06 '19 19:11 GeorgeS2019

image

GeorgeS2019 avatar Nov 06 '19 19:11 GeorgeS2019