check_shape¶
- paddle. check_shape ( shape, op_name, expected_shape_type=(<class 'list'>, <class 'tuple'>, <class 'paddle.base.framework.Variable'>, <class 'paddle.base.libpaddle.pir.Value'>), expected_element_type=(<class 'int'>, <class 'paddle.base.framework.Variable'>, <class 'paddle.base.libpaddle.pir.Value'>), expected_tensor_dtype=('int32', 'int64') ) [source]