From 8f1f12baf67b104809a6f798375a531c1a8db6e6 Mon Sep 17 00:00:00 2001 From: jiangjiajun Date: Fri, 17 Apr 2020 16:11:25 +0800 Subject: [PATCH] add dtype for range op --- x2paddle/op_mapper/tf_op_mapper_nhwc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x2paddle/op_mapper/tf_op_mapper_nhwc.py b/x2paddle/op_mapper/tf_op_mapper_nhwc.py index a005c27..75ab10e 100644 --- a/x2paddle/op_mapper/tf_op_mapper_nhwc.py +++ b/x2paddle/op_mapper/tf_op_mapper_nhwc.py @@ -744,13 +744,12 @@ class TFOpMapperNHWC(OpMapper): "start": start, "end": limit, "step": delta, - "dtype": string(dtype) } attr = {"dtype": string(node.dtype)} node.fluid_code.add_layer("range", inputs=inputs, output=node, - param_attr=None) + param_attr=attr) def Mean(self, node): input = self.graph.get_node(node.layer.input[0], copy=True) -- GitLab