Tensorflow: difference in get_collection, get_tensor_by_name and get_operation_by_name?

When restoring a model, what is the difference between get_collection, get_tensor_by_nameand get_operation_by_name? Thank!

0
source share
1 answer

You can add_collection(name, operation/tensor)on the graph, but get_collection(name)returns a list of values ​​in the collection with the given name.

get_tensor_by_name(name)returns the tensor with the given name.

get_operation_by_name(name)returns operation with data name.

0
source

Source: https://habr.com/ru/post/1691506/


All Articles