提交 328ac1a2 编写于 作者: S SunAhong1993

add todo

上级 d20d08b4
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License" # Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
...@@ -403,8 +403,6 @@ class TFOpMapper(OpMapper): ...@@ -403,8 +403,6 @@ class TFOpMapper(OpMapper):
if c == -1: if c == -1:
attr = {"shape": [0, k_size[2], 0, 0]} attr = {"shape": [0, k_size[2], 0, 0]}
node.fluid_code.add_layer(
"reshape", inputs=input, output=input, param_attr=attr)
self.paddle_graph.add_layer( self.paddle_graph.add_layer(
kernel="paddle.reshape", kernel="paddle.reshape",
inputs={"x": input_name}, inputs={"x": input_name},
...@@ -722,6 +720,7 @@ class TFOpMapper(OpMapper): ...@@ -722,6 +720,7 @@ class TFOpMapper(OpMapper):
output_name = node.name output_name = node.name
layer_outputs = [op_name, output_name] layer_outputs = [op_name, output_name]
# TODO(syf): The op has diff.
# self.paddle_graph.add_layer( # self.paddle_graph.add_layer(
# kernel="paddle.nn.AvgPool2D", # kernel="paddle.nn.AvgPool2D",
# inputs={"input": input_name}, # inputs={"input": input_name},
...@@ -1148,6 +1147,7 @@ class TFOpMapper(OpMapper): ...@@ -1148,6 +1147,7 @@ class TFOpMapper(OpMapper):
perm=[0, 3, 1, 2]) perm=[0, 3, 1, 2])
input_name = transpose_name input_name = transpose_name
# TODO(syf): The output_size is not set.
# self.paddle_graph.add_layer( # self.paddle_graph.add_layer(
# kernel="paddle.nn.Conv2DTranspose", # kernel="paddle.nn.Conv2DTranspose",
# inputs={"input": input_name}, # inputs={"input": input_name},
......
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# #
# Licensed under the Apache License, Version 2.0 (the "License" # Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册