Giter Site home page Giter Site logo

TF 2.4.1 and gRPC about seed_rl HOT 4 CLOSED

ideenfix avatar ideenfix commented on June 8, 2024
TF 2.4.1 and gRPC

from seed_rl.

Comments (4)

ideenfix avatar ideenfix commented on June 8, 2024

Succes. gRPC run with Tensorflow 2.4.1. Attached the Dockerfile. I don't know exactly whether some steps unnecessary but now it's run.
Dockerfile.grpc241.txt

from seed_rl.

brieyla1 avatar brieyla1 commented on June 8, 2024

hey !

tensorflow custom ops will only be giving Symbol errors when the 2.X build is different, you can therefore use this docker image:
FROM tensorflow/tensorflow:2.4.0-custom-op-gpu-ubuntu16

and everything should work as expected.

I have modified my WORKSPACE aswell, as I had problems with the vanilla one:

load("//tf:tf_configure.bzl", "tf_configure")
load("//gpu:cuda_configure.bzl", "cuda_configure")

tf_configure(name = "local_config_tf")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "com_github_grpc_grpc",
    urls = [
        "https://github.com/grpc/grpc/archive/ac1c5de1b36da4a1e3d72ca40b0e43f24266121a.tar.gz",
    ],
    strip_prefix = "grpc-ac1c5de1b36da4a1e3d72ca40b0e43f24266121a",
)

http_archive(
    name = "com_google_protobuf",
    strip_prefix = "protobuf-3.9.0",
    urls = [
        "https://github.com/protocolbuffers/protobuf/releases/download/v3.9.0/protobuf-all-3.9.0.tar.gz",
    ],
)

load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
grpc_deps()
load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
grpc_extra_deps()


http_archive(
    name = "com_google_protobuf",
    strip_prefix = "protobuf-3.9.1",
    urls = [
        "https://github.com/protocolbuffers/protobuf/releases/download/v3.9.1/protobuf-all-3.9.1.tar.gz",
    ],
)

PS: don't forget to install tensorflow 2.4.1 for the testing:
RUN pip3 install tensorflow-gpu==2.4.1

have a good day.

from seed_rl.

VegeWong avatar VegeWong commented on June 8, 2024

For users having TF 2.4.1 and CUDA 11 dependencies and network issues accessing google-hosted repos and sources, the PR #66 may help.

from seed_rl.

lespeholt avatar lespeholt commented on June 8, 2024

I updated the repository to 2.4.1.

from seed_rl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.