Note that with tuples, heterogeneous types are supported, due to the tuple type being a kind of heterogeneous
collection.
Internally, the fetchable provided to a session will be de-duplicated to prevent redundant computation. This means
that ops that appear more than once in the fetchable, will only be executed once by the session.
Fetchables guarantee that the returned result of a computation will match the structure of the provided fetchable.
For example, if a Seq(List(output1), List(output1, output2)) is provided as the Session.run fetchable, then
the result will have the following structure Seq(List(tensor1), List(tensor1, tensor2)).
Fetchables can be executed within a TensorFlow session and have their results returned from Session.run.
For example, the result of any mathematical operation can be fetched.
Currently supported fetchable types are:
Seq
s,List
s, etc.).Seq(output1, Seq(output1, output2))
).Seq(List(output1), List(output1, output2))
is supported,Seq(Seq(output1), List(output1, output2))
is not.Fetchables guarantee that the returned result of a computation will match the structure of the provided fetchable. For example, if a
Seq(List(output1), List(output1, output2))
is provided as the Session.run fetchable, then the result will have the following structureSeq(List(tensor1), List(tensor1, tensor2))
.