sponge.function.bonds_in ============================ .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindscience/blob/master/MindSPONGE/docs/api/api_python/function/sponge.function.bonds_in.rst :alt: 查看源文件 .. py:function:: sponge.function.bonds_in(bonds, batch_bond) 如果 bonds 中存在 batch_bond 则返回。 参数: - **bonds** (Tensor) - 总bonds集。 - **batch_bond** (Tensor) - 输入的bond集合。 返回: 如果 batch_bond 存在于 bonds 中,掩码将变为1,否则为0。