class_docstr: a Transformer that converts an Array[_] or Seq[_] to a Tensor.
  :param size dimensions of target Tensor.
class_docstr_tok: ["a","Transformer","that","converts","an","Array","[","_","]","or","Seq","[","_","]","to","a","Tensor",".",":","param","size","dimensions","of","target","Tensor","."]
code: def __init__(self, size=[], bigdl_type="float"):
      super(SeqToTensor, self).__init__(bigdl_type, size)
  
imports: from bigdl.util.common import *
  from zoo.common.utils import callZooFunc
  from bigdl.dataset.dataset import DataSet
  from pyspark.serializers import CloudPickleSerializer
  import sys
  import math
  import warnings
label_desc: Use image node_id 1 to create a new SeqToTensor object from inherited base classes: Preprocessing with example: obj = SeqToTensor(size, bigdl_type)