-
Notifications
You must be signed in to change notification settings - Fork 3
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
Build error #13
Comments
Yep, you just need to use the graft release that matches your libtensorflow
version. You are using a graft version that is newer than your
libtensorflow. See releases and let me know if you have issues.
…On Mon, May 8, 2023 at 11:32 AM Eric Lang ***@***.***> wrote:
Hello,
I'm on Mac m2, I think my go env is ok, and the basic gcc test for
libtensorflow works fine. However, when I try to build your hello
TensorFlow example here I get the following. Any ideas? Thanks
% go install
github.com/wamuir/graft/tensorflow
../../../../pkg/mod/
***@***.***/tensorflow/tensor.go:69:26: could not
determine kind of name for C.TF_FLOAT8_E4M3FN
../../../../pkg/mod/
***@***.***/tensorflow/tensor.go:68:26: could not
determine kind of name for C.TF_FLOAT8_E5M2
—
Reply to this email directly, view it on GitHub
<#13>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEFPZETOKERIBXQ357GBK7TXFEGXPANCNFSM6AAAAAAX2DIHVQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
derp, yes, that was it. All is good. Thanks |
Hey @exyzzy, I'm curious as to how you got libtensorflow to work on your Mac. |
Figured it out - had to manually set |
horrible, by requiring me to fix the problem above, I am destroying my tensorflow installation... it's getting worse and worse... with messages such as:
Was it not possible to indicate which version of tensorflow is compatible with the latest lib update in the readme ? |
You have chosen to use a build of libtensorflow that does not take advantage of several CPU instructions. This is an informational message. Ignore it, use a different libtensorflow build, or compile libtensorflow yourself to use these instructions. If you don't like the info message then you should open an issue at: https://github.com/tensorflow/tensorflow.
What did you expect? Did you install TensorRT? https://developer.nvidia.com/tensorrt
This information is listed clearly on the releases page https://github.com/wamuir/graft/releases |
Still me, even using a docker image, I always encounter this error, can you help me.
CF:
https://github.com/ariden83/gocomments/blob/main/api/Dockerfile
(I also tested with more old and recent versions of wamuir/graft 4.0, 4.1, 5, 5.1, 6, 6.1, 7, 8) I've always got this error github.com/wamuir/graft/tensorflowvendor/github.com/wamuir/graft/tensorflow/tensor.go:69:26: could not determine kind of name for C.TF_FLOAT8_E4M3FN Could you help me to modify the dockerfile ? |
@ariden83 Assuming your machine is amd_64: FROM golang:1.21-bookworm
RUN curl -L https://storage.googleapis.com/tensorflow/versions/2.16.1/libtensorflow-cpu-linux-$(uname -m).tar.gz \
| tar xz --directory /usr/local \
&& ldconfig
WORKDIR /app
RUN curl -fSLs https://raw.githubusercontent.com/wamuir/graft/nightly/tools/graft_package/_libtensorflow_graft_hello.go\
> hello_tf.go \
&& go mod init graft-test-app \
&& go get github.com/wamuir/[email protected] \
&& go mod tidy
ENTRYPOINT ["go", "run"] |
Thank you very much, its works well in local and in an docker image. |
Hello,
I'm on Mac m2, I think my go env is ok, and the basic gcc test for libtensorflow works fine. However, when I try to build your hello TensorFlow example here I get the following. Any ideas? Thanks
The text was updated successfully, but these errors were encountered: