Commit cf856db
authored
TensorFlow Transformer Part-2 (#9)
* update utils
* tests
* fix style
Using the following YAPF style
========================================================
based_on_style = pep8
ALIGN_CLOSING_BRACKET_WITH_VISUAL_INDENT=True
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF=False
COLUMN_LIMIT=100
SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET=False
SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED=True
SPLIT_BEFORE_FIRST_ARGUMENT=False
SPLIT_BEFORE_NAMED_ASSIGNS=False
SPLIT_PENALTY_AFTER_OPENING_BRACKET=30
USE_TABS=False
========================================================
* refactoring tfx API
* test refactoring
* PR comments
1. docs in graph/utils.py
* (wip) utils test
* a few more tests for utils
* test update cont'd
* PR comments
* PR comments
* PR comments
* TensorFlow Transformer Part-3 (#10)
* intro: TFInputGraph
* tests
* Merge branch 'tf-transformer-part1' into tf-transformer-part3
* and so there is no helper classes
* and into more pieces
* class & docs
* update docs
* refactoring tfx API
* update tfx utils usage
* one way to build these tests
* tests refactored
* test cases in a single class
THis will make things easier when we want to extend other base class functions.
* shuffle things around
Signed-off-by: Philip Yang <philip.yang@databricks.com>
* docs mostly
* yapf'd
* consolidate tempdir creation
* (wip) PR comments
* more tests
* change test generator module name
* TFTransformer Part-3 Test Refactor (#14)
* profiling
* tests
* renamed test
* removed original tests
* removed the profiler utils
* fixes indents
* imports
* added some tests
* added test
* fix test
* one more test
* PR comments
* TensorFlow Transformer Part-4 (#11)
* flat param API impl
* support input graph scenarios
* (WIP) new interface implementation
* docs and cleanup
* using tensorflow API instead of our utilities
* automatic type conversion
* cleanup
* PR comments
1. Move `InputGraph` to its module.
* (WIP) address comments
* (WIP) respond to PR comments
* test refactor
* (wip) consolidating params
* rebase upstream
* import params fix
* (wip) TFInputGraph impl
* (wip) moving to new API
* (wip) enable saved_model tests
* (wip) enable checkpoint test
* (wip) enable multiple tensor tests
* enable all tests
* optimize graph for inference
* allows setting TFInputGraph
* utilize test_input_graph for transformer tests
* enable all tests
Signed-off-by: Philip Yang <philip.yang@databricks.com>
* input graph
* docs
* tensor tests
* tensor test update
* TFTransformer Part-4 Test Refactor (#15)
* adding new tests
* remove original test design
* cleanup
* deleting original testing ideas
* PR comments1 parent a8531ec commit cf856db
19 files changed
Lines changed: 1297 additions & 119 deletions
File tree
- python
- docs
- sparkdl
- graph
- param
- transformers
- tests
- graph
- transformers
- udf
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | | - | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
271 | | - | |
0 commit comments