8000 Go: Update generated wrapper functions for TensorFlow ops. · IBMZ-Linux-OSS-Python/tensorflow@d3bd57f · GitHub
[go: up one dir, main page]

Skip to content

Commit d3bd57f

Browse files
Go: Update generated wrapper functions for TensorFlow ops.
PiperOrigin-RevId: 673091114
1 parent 25ad65c commit d3bd57f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/go/op/wrappers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6869,7 +6869,7 @@ func Concat(scope *Scope, concat_dim tf.Output, values []tf.Output) (output tf.O
68696869
// >>> y = [2, 3, 7]
68706870
// >>> z = [2, 9, 7]
68716871
// >>> offsets = concat_offset(1, [x, y, z])
6872-
// >>> [list(off.numpy()) for off in offsets]
6872+
// >>> [[a.item() for a in list(off.numpy())] for off in offsets]
68736873
// [[0, 0, 0], [0, 2, 0], [0, 5, 0]]
68746874
//
68756875
// This is typically used by gradient computations for a concat operation.

0 commit comments

Comments
 (0)
0