恢复模型时,get_collection
、get_tensor_by_name
和get_operation_by_name
之间有什么区别?谢谢
您可以将add_collection(name, operation/tensor)
添加到图中,get_collection(name)
返回集合中具有给定name
的值的列表。
get_tensor_by_name(name)
返回具有给定name
的张量。
get_operation_by_name(name)
返回具有给定name
的操作。