Home | History | Annotate | Download | only in eager

Lines Matching refs:lists

210 def args_to_mixed_eager_tensors(lists, ctx):
211 """Converts a list of same-length lists of values to eager tensors."""
212 assert len(lists) > 1
214 # Generate an error if len(lists[i]) is not the same for all i.
216 for l in lists[1:]:
217 if len(l) != len(lists[0]):
220 % (len(lists[0]), len(l), lists[0], l))
225 for i in range(len(lists[0])):
228 for l in lists:
234 lists_ret[0].append(ops.internal_convert_to_tensor(lists[0][i], ctx=ctx))
236 for j in range(1, len(lists)):
238 ops.internal_convert_to_tensor(lists[j][i], dtype=dtype, ctx=ctx))
241 for j in range(len(lists)):
243 ops.internal_convert_to_tensor(lists[j][i], dtype=dtype, ctx=ctx))