rk2900 / DRSA

Deep Recurrent Survival Analysis, an auto-regressive deep model for time-to-event data analysis with censorship handling. An implementation of our AAAI 2019 paper and a benchmark for several (Python) implemented survival analysis methods.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Value passed to parameter 'multiples' has DataType float32 not in list of allowed values: int32, int64

Jeet0204 opened this issue · comments

I am stuck with this error while running "python DRSA.py 0.0001". Any help would be appreciated. Thanks in advance.

File "DRSA.py", line 45, in
RUNNING_MODEL.create_graph()
File "C:\Users\jeetj\PycharmProjects\DRSA\python\BASE_MODEL.py", line 264, in create_graph
input_x = tf.map_fn(add_time, middle_layer)
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\map_fn.py", line 268, in map_fn
maximum_iterations=n)
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 3501, in while_loop
return_same_structure)
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 3012, in BuildLoop
pred, body, original_loop_vars, loop_vars, shape_invariants)
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 2937, in _BuildLoop
body_result = body(*packed_vars_for_body)
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\control_flow_ops.py", line 3456, in
body = lambda i, lv: (i + 1, orig_body(*lv))
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\map_fn.py", line 257, in compute
packed_fn_values = fn(packed_values)
File "C:\Users\jeetj\PycharmProjects\DRSA\python\BASE_MODEL.py", line 259, in add_time
y = tf.reshape(tf.tile(x, [self.MAX_SEQ_LEN]), [self.MAX_SEQ_LEN, self.MIDDLE_FEATURE_SIZE])
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 13230, in tile
"Tile", input=input, multiples=multiples, name=name)
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 626, in _apply_op_helper
param_name=input_name)
File "C:\Users\jeetj\AppData\Local\Programs\Python\Python37\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 60, in _SatisfiesTypeConstraint
", ".join(dtypes.as_dtype(x).name for x in allowed_list)))

TypeError: Value passed to parameter 'multiples' has DataType float32 not in list of allowed values: int32, int64

You may refer to this comment: #2 (comment)