提交 b62df992 编写于 作者: keineahnung2345's avatar keineahnung2345 提交者: Waleed

[Bug fix] tf.boolean_mask cannot accept name=None

pass name=None to tf.boolean_mask will lead to ValueError: At least one of name (None) and default_name (None) must be provided.
上级 1aca439c
......@@ -2812,7 +2812,7 @@ def unmold_image(normalized_images, config):
# Miscellenous Graph Functions
############################################################
def trim_zeros_graph(boxes, name=None):
def trim_zeros_graph(boxes, name='trim_zeros'):
"""Often boxes are represented with matrices of shape [N, 4] and
are padded with zeros. This removes zero boxes.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册