This commit is contained in:
zong_shuai 2022-09-15 16:29:05 +08:00
parent e0c44bcc8b
commit 4f2d23b87d
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def get_bprop_resize_bicubic(self):
def get_bprop_crop_and_resize(self):
"""Grad definition for `CropAndResize` operation."""
allowed_types = [mstype.float16, mstype.float32, mstype.float64]
gradboxes = CropAndResizeGradBoxes(method=self.method)
gradboxes = CropAndResizeGradBoxes(method="bilinear")
method_ = self.method
def bprop(x, boxes, box_index, crop_size, out, dout):
if method_ != "bilinear":