cast_bool_if_necessary

paddle.fluid.dygraph.dygraph_to_static.convert_operators. cast_bool_if_necessary ( var ) [source]