Skip to content

run in version 1.2.1 #13

@xieexiaotuzi

Description

@xieexiaotuzi

Hi . thank u so much for your code about rnn. I want to run it in version 1.2.1. After some changes, I meet with an error which seems a little hard for me.

code:
self._initial_state = cell.zero_state(self.batch_size,dtype=tf.float32)
error:
TypeError: int() argument must be a string or a number, not 'Variable'
I know why this happens. but due to code structure, I won't change the type of batch_size. So what should I do? thank u.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions