create_bool_as_type

paddle.fluid.dygraph.dygraph_to_static.variable_trans_func. create_bool_as_type ( x, value=True ) [source]

Create a bool variable, which type is the same as x.