Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample about how to use ICSharpCore #2

Open
Oceania2018 opened this issue May 2, 2019 · 9 comments
Open

Sample about how to use ICSharpCore #2

Oceania2018 opened this issue May 2, 2019 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@Oceania2018
Copy link
Member

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 Oceania2018 added the enhancement New feature or request label May 2, 2019
@kerryjiang
Copy link
Member

kerryjiang commented May 6, 2019

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
Copy link
Member Author

It works.

image

@noobwu
Copy link

noobwu commented May 12, 2019

image

@noobwu
Copy link

noobwu commented May 12, 2019

image

@kerryjiang
Copy link
Member

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
Copy link
Member Author

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

@kerryjiang
Copy link
Member

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

@GeorgeS2019
Copy link

GeorgeS2019 commented Nov 6, 2019

It is installed correctly
image

But it fails with static tf.

image

@GeorgeS2019
Copy link

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants