tensorport.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:jack 作者: uclmr 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号