tensorflow初始化报错:
ValueError: You can only pass an initializer function that expects no arguments to its callable when the shape is not fully defined. The given initializer function expects the following args [‘shape’, ‘dtype’, ‘partition_info’]
原因:是因为定义维度那一维是取的tensor的最后一维,类型是NoneType,所以直接用这个值去初始化会报错,直接写成数字就可以运行
------------------------------未完待续----------------------------