Feature Request: GPUOptions for Go binding #22926
Comments
Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks. |
This problem appears to be broader than just specifying See, for example, the test case func TestSessionConfig(t *testing.T) {
// Exercise SessionOptions.
// Arguably, a better API would be for SessionOptions.Config to be the
// type generated by the protocol buffer compiler. But for now, the
// tensorflow package continues to be independent of protocol buffers
// and this test exercises the option since the implementation has a
// nuanced conversion to C types.
//
// Till then, the []byte form of Config here was generated using a toy
// tensorflow Python program:
/*
import tensorflow
c = tensorflow.ConfigProto()
c.intra_op_parallelism_threads = 1
print c.SerializeToString()
*/
graph := NewGraph()
c, err := Const(graph, "Const", int32(14))
if err != nil {
t.Fatal(err)
}
opts := SessionOptions{Config: []byte("(\x01")}
[...] Would the TensorFlow maintainers accept a non-Google contribution that added the ability to specify session options using pure Go code? This functionality would require generating instances of the |
@asimshankar Can you please take a look? Thanks! |
@frreiss we'll definitely accept a Go-only API to configure tensorflow. |
I am looking into this. |
Created PR #26682 with a Go API to create ConfigOptions protocol buffer messages. I made the changes as narrow in scope as I could. |
#26682 is reverted 6e9cb40#diff-dcd28ad951bd17e9c512d3b564640bab |
is this issue open? Can i work on it? @mattn |
Yes please. |
May I know how to reproduce the issue? |
Sorry, I don't know why the changes was reverted. |
ok no problem I will try some other issues |
Hi,Adesh I am beginner i don't where start Can anybody help me????? |
Hello! |
can someone guide me what to do? i will be really thankful |
Kindly close this issue. It's confusing for first time contributors who come here for solving their first Issue. |
I don't mind to close this but no one explain why #26682 was reverted. |
is this still open? |
is it still open ? |
@mattn is this issue closed? |
Assign me |
relax people! if u are here to solve these tasks, u are a beginner anyway. |
can any one guide me to this issue |
Hello Gays |
Ok ill start on the issue. |
name =input("enter your name : ") |
@plopd Thanks. I really look forward to lots of learning. So how to get started? |
Note from the past to fellow coders and beginners: So this pops up in the good first issue page and a lot of "good first issue finder" websites. You might've came from a link, or other way. So here is the deal: I am a TensorFlow Developer - god level: Try it out, if you can understand what these names mean and can spot them in in the "TensorFlow". I am a TensorFlow Developer: Try to solve it/ or learn the issue. I am a huge developer of [X language used in TensorFlow]: First learn the issue(more like, learn how the issue relates to the "TensorFlow". I am a developer of [X language used in TensorFlow]: try it out; learn the issue. I am a learner in TensorFlow: you can start by learning the code of TensorFlow, then the issue, then the solutions + comments( <- do this before solving it!) I am a learner of [X language used in TensorFlow]: you can explore but try this issue when you become a I am a learner in TensorFlow or I am a developer of [X language used in TensorFlow]... I am a learner of programming: first be a I am a learner of [X language used in TensorFlow] or a I am a developer of [X language used in TensorFlow].... I am a explorer of GitHub/TensorFlow/[X language used in TensorFlow]: you can start by learning the code of TensorFlow, then the issue, then the solutions + comments( <- do this before solving it!) After choosing what to do from the above; do these: Understand what is going on here; what's the comments, what's the feature, what are the questions here, how all these PRs and versions align to the issue, Can you make a timeline of the improvements. So you are fixing the issue: First understand what is "GPUOptions for Go binding" then look the PRs already in progress, then chat with everyone(feel free to chat in other places like Reddit, Stack overflow. Thanks for the hearts! |
Hello-World |
This comment section is just 1 mile away from getting the normal-land spam, isn't there some body to moderate this and take a look at the PRs and like disable commenting if a PR does good? Examples of not-spam but worthless comments:
has a lot reactions
I am sorry if I got a comment wrong but sure this needs attention from someone (even not for my request/specific-thing but just...) |
52193 |
Current implementation of Go binding can not specify options.
GPUOptions struct is in internal package. And
go generate
doesn't work for protobuf directory. So we can't specify GPUOptions forNewSession
.The text was updated successfully, but these errors were encountered: