Skip to content

Unable to execute - TypeError: asscalar() takes 1 positional argument but 2 were given on Line 154 #1

Description

@sathappanspm

Hi,
I am unable to run the code. The code was unable to generate sample data due to an error at Line 154 on generation.py.
Changing Line 154 on generation.py from

 seq.append([np.asscalar(dim[0],new_t)])

to

 seq.append([np.asscalar(dim[0]),new_t])

seems to generate sequences.

However, now running python RNNPP.py event generates tensorflow error

InvalidArgumentError (see above for traceback): Incompatible shapes: [256,126] vs. [256,123]
	 [[Node: RNNPP/mul_1 = Mul[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](RNNPP/Reshape_6, RNNPP/Slice_3)]]

Could you kindly help with this? Also, if possible could you also provide with the versions of different libraries used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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