class_docstr: An abstraction to use when building tensor factories.
docstr: Wrap raw `value` in this data type as a tensor.
docstr_tok: ["Wrap","raw","`","value","`","in","this","data","type","as","a","tensor","."]
code: def tensor(self, value: Union[tf.Tensor, np.ndarray]):
      """Wrap raw `value` in this data type as a tensor."""
  
imports: import abc
  from typing import Optional
  from typing import Union
  import numpy
  import tensorflow
label_desc: Use image node_id 3 for calling the AbstractFactory obj's underlying member method code with example usage: obj.tensor(value) without return types