class_docstr: a Preprocessing that converts a number to a Tensor.
class_docstr_tok: ["a","Preprocessing","that","converts","a","number","to","a","Tensor","."]
code: def __init__(self, bigdl_type="float"):
      super(ScalarToTensor, self).__init__(bigdl_type)
  
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 ScalarToTensor object from inherited base classes: Preprocessing with example: obj = ScalarToTensor(bigdl_type)