Created by: luotao1
Error example:
x = fluid.layers.data(name='x', shape=[1], dtype="float32")
y = fluid.create_lod_tensor(numpy.array([[-1]]), [[1]], fluid.CPUPlace())
fluid.layers.greater_equal(x, y)
before result:
ValueError: not suprt args type , should be[ string_type, binary_type, Varibale]
There are several errors in this message:
- It's not ValueError, but TypeError
- Typo: suprt->support, Varibale->Variable
- Don't show the current args type, and don't show which is string_type or binary_type
After result:
TypeError: (u'The type of ‘Y’ in operator greater_equal should be one of [basestring(), str, Varibale] in python2, or one of [str, bytes, Variable] in python3.but received : ',
<paddle.fluid.core_avx.LoDTensor object at 0x5f56f48>)