-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python wrap for resize layer #1853
Closed
Closed
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a61af84
wrap for resize layer
4edd983
Merge branch 'develop' of https://github.com/baidu/Paddle into develop
e6745f9
add test for resize
b2b7f47
Merge branch 'develop' of https://github.com/baidu/Paddle into develop
51822e5
Merge branch 'develop' of https://github.com/baidu/Paddle into develop
60735c4
python test
75cd91c
change test helper layer name
597b4a9
update
6d74b9f
fix hook
32feb59
add enter
38d121d
fix pre commit
72aa084
fix hook
2303228
rm redundent file
f654c12
update
2ea811d
fix issue
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
python/paddle/trainer_config_helpers/tests/configs/protostr/test_resize.protostr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
type: "nn" | ||
layers { | ||
name: "input" | ||
type: "data" | ||
size: 300 | ||
active_type: "" | ||
height: 100 | ||
width: 3 | ||
} | ||
layers { | ||
name: "__resize_layer_0__" | ||
type: "resize" | ||
size: 100 | ||
active_type: "" | ||
inputs { | ||
input_layer_name: "input" | ||
} | ||
} | ||
input_layer_names: "input" | ||
output_layer_names: "__resize_layer_0__" | ||
sub_models { | ||
name: "root" | ||
layer_names: "input" | ||
layer_names: "__resize_layer_0__" | ||
input_layer_names: "input" | ||
output_layer_names: "__resize_layer_0__" | ||
is_recurrent_layer_group: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
python/paddle/trainer_config_helpers/tests/configs/test_resize.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from paddle.trainer_config_helpers import * | ||
|
||
settings(batch_size=1) | ||
|
||
data = data_layer(name='input', size=300, height=100, width=3) | ||
resize = resize_layer(input=data, size=100) | ||
|
||
outputs(resize) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请问这个文件的修改是必须的么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done