Type name does not show correctly when `EnforceNotMet`:
Created by: typhoonzero
Type name does not show correctly when EnforceNotMet
, when tensor type is bool
, which causing:
221: Traceback (most recent call last):
221: File "test_auc_op.py", line 63, in test_check_output
221: self.check_output()
221: File "/paddle/python/paddle/v2/framework/tests/op_test.py", line 315, in check_output
221: self.check_output_with_place(place, atol)
221: File "/paddle/python/paddle/v2/framework/tests/op_test.py", line 261, in check_output_with_place
221: outs = exe.run(program, feed=feed_map, fetch_list=fetch_list)
221: File "/paddle/build/python/build/lib-python/paddle/v2/framework/executor.py", line 65, in run
221: self.executor.run(program.desc, scope, 0)
221: EnforceNotMet: Cannot get size of type b at [/paddle/paddle/framework/tensor_impl.h:57]