Skip to content
Permalink
Browse files

refactor(base): better batch_size control

  • Loading branch information...
hanxiao committed Aug 2, 2019
1 parent 8b72fd9 commit c430ef64eaa6960a9768b006c1959630ae4f18d4
Showing with 1 addition and 2 deletions.
  1. +0 −1 gnes/encoder/video/incep_mixture.py
  2. +1 −1 tests/yaml/router-batch.yml
@@ -102,7 +102,6 @@ def post_init(self):
saver.restore(self.sess2, self.model_dir_mixture)

def encode(self, data: List['np.ndarray'], *args, **kwargs) -> np.ndarray:
ret = []
v_len = [len(v) for v in data]
pos_start = [0] + [sum(v_len[:i + 1]) for i in range(len(v_len) - 1)]
pos_end = [sum(v_len[:i + 1]) for i in range(len(v_len))]
@@ -1,3 +1,3 @@
!DocBatchRouter
parameter:
gnes_config:
batch_size: 2

0 comments on commit c430ef6

Please sign in to comment.
You can’t perform that action at this time.