def __init__(self, dtype, shape, name, doc_string=None, shape_string=None):
"""Create a new TensorPort.
Args:
dtype: the (TF) data type of the port.
shape: the shape of the tensor.
name: the name of this port (should be a valid TF name)
doc_string: a documentation string associated with this port
shape_string: a string of the form [size_1,size_2,size_3] where size_i is a text describing the
size of the tensor's dimension i (such as "number of batches").
"""
self.dtype = dtype
self.shape = shape
self.name = name
self.__doc__ = doc_string
self.shape_string = shape_string
评论列表
文章目录