Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 834d97d

Browse files
committed
Set output shapes after materialization.
1 parent cc11762 commit 834d97d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/TensorFlow/Core/LazyTensorOperation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ extension LazyTensorOperation {
891891
for lazyOp in traceInfo.lazyOperations {
892892
let end = start + lazyOp.outputCount
893893
lazyOp.outputs = Array(allOutputs[start..<end])
894+
lazyOp.outputShapes = lazyOp.outputs!.map { $0.shape }
894895
start = end
895896
}
896897

0 commit comments

Comments
 (0)