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

using tf.constant() in td.Composition #92

Open
legend4917 opened this issue Jan 22, 2018 · 1 comment
Open

using tf.constant() in td.Composition #92

legend4917 opened this issue Jan 22, 2018 · 1 comment

Comments

@legend4917
Copy link

legend4917 commented Jan 22, 2018

I got a problem recently, describe briefly as follow:

def xxx(ss):
	word = [1 for _ in range(ss)]
	return word

c = td.Composition(name="ccc")
with c.scope():
	aa = c.input
	b = tf.constant(aa)
	c.output.reads(b)

res = td.InputTransform(xxx) >> c

with tf.Session() as sess:
	print(res.eval(10))

running the code got "TypeError: Expected binary or unicode string, got <td.Composition.input 'ccc'>"

Any help would be greatly appreciated.

@delesley
Copy link
Contributor

delesley commented Jan 22, 2018 via email

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

2 participants