提交 6967f923 编写于 作者: P peizhilin

fix the word2ver on windows test=develop

上级 2ef9e287
...@@ -188,11 +188,11 @@ def infer(use_cuda, params_dirname=None): ...@@ -188,11 +188,11 @@ def infer(use_cuda, params_dirname=None):
# meaning there is only one level of detail and there is only one sequence of # meaning there is only one level of detail and there is only one sequence of
# one word on this level. # one word on this level.
# Note that recursive_sequence_lengths should be a list of lists. # Note that recursive_sequence_lengths should be a list of lists.
data1 = [[211]] # 'among' data1 = numpy.array([[211]], dtype='int64') # 'among'
data2 = [[6]] # 'a' data2 = numpy.array([[6]], dtype='int64') # 'a'
data3 = [[96]] # 'group' data3 = numpy.array([[96]], dtype='int64') # 'group'
data4 = [[4]] # 'of' data4 = numpy.array([[4]], dtype='int64') # 'of'
lod = [[1]] lod = numpy.array([[1]], dtype='int64')
first_word = fluid.create_lod_tensor(data1, lod, place) first_word = fluid.create_lod_tensor(data1, lod, place)
second_word = fluid.create_lod_tensor(data2, lod, place) second_word = fluid.create_lod_tensor(data2, lod, place)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册