Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(flow): fix flow unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Oct 11, 2019
1 parent 9095bfa commit a3da058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/test_gnes_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _test_query_flow(self):
with flow.build(backend='process') as f, open(self.test_file, encoding='utf8') as fp:
f.query(bytes_gen=[v.encode() for v in fp][:10])

@unittest.SkipTest
# @unittest.SkipTest
def test_index_query_flow(self):
self._test_index_flow()
print('indexing finished')
Expand Down
9 changes: 1 addition & 8 deletions tests/yaml/flow-transformer.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
!PipelineEncoder
components:
- !PyTorchTransformers
parameters:
model_dir: $TORCH_TRANSFORMERS_MODEL
model_name: bert-base-uncased
- !PoolingEncoder
parameters:
pooling_strategy: REDUCE_MEAN
backend: torch
- !CharEmbeddingEncoder {}
gnes_config:
name: my_transformer # a customized name
is_trained: true # indicate the model has been trained
Expand Down

0 comments on commit a3da058

Please sign in to comment.