提交 6aa59858 编写于 作者: W wjj19950828

Fixed for CI

上级 284e7f2a
......@@ -2128,7 +2128,7 @@ class OpSet9():
paddings, var_x = self._pad_if_asymmetric(node, pads, val_x)
if output_size is not None:
if len(output_size) != 0:
paddings = [0] * 4
total_paddings = list()
total_paddings.append((val_x.out_shapes[0][2] - 1) * strides[
......@@ -2248,6 +2248,18 @@ class OpSet9():
outputs=[node.name],
dtype=string(node.dtype))
@print_mapping_info
def Sin(self, node):
val_x = self.graph.get_input_node(node, idx=0, copy=True)
self.paddle_graph.add_layer(
"paddle.sin", inputs={"x": val_x.name}, outputs=[node.name])
@print_mapping_info
def Cos(self, node):
val_x = self.graph.get_input_node(node, idx=0, copy=True)
self.paddle_graph.add_layer(
"paddle.cos", inputs={"x": val_x.name}, outputs=[node.name])
@print_mapping_info
def OneHot(self, node):
nn_op_name = name_generator("onehot", self.nn_name2id)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册