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

Convert SequenceType to TupleType #75

Open
bdqnghi opened this issue Jul 18, 2017 · 0 comments
Open

Convert SequenceType to TupleType #75

bdqnghi opened this issue Jul 18, 2017 · 0 comments

Comments

@bdqnghi
Copy link

bdqnghi commented Jul 18, 2017

Suppose that I have an input like this ["string1,"string2","string3].
Then I want to produce a block with produce tuple type, for example : (array([-5., 4.], dtype=float32), array([ 5., 5.], dtype=float32),array([-5., 3.], dtype=float32))

I tried something like this:

test_array = td.AllOf(td.Map(td.InputTransform(lambda x: 1))) >> tdb.Function(tf.identity)
print test_array.eval(["string1","string2"])

Maybe I'm not very clear on how to use fold block, any help is very appreciated.

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

No branches or pull requests

1 participant