Skip to content

Commit

Permalink
Go: Update generated wrapper functions for TensorFlow ops.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 632649155
  • Loading branch information
tensorflower-gardener committed May 11, 2024
1 parent ad631f7 commit c4838c0
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tensorflow/go/op/wrappers.go
Expand Up @@ -19863,6 +19863,22 @@ func GetSessionTensor(scope *Scope, handle tf.Output, dtype tf.DataType) (value
return op.Output(0)
}

// An op returns the TPU task ID from TPU topology.
//
// This op is to return the TPU task ID from TPU topology.
//
// Returns The TPU task ID from TPU topology.
func GetTpuTaskId(scope *Scope) (tpu_task_id tf.Output) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "GetTpuTaskId",
}
op := scope.AddOperation(opspec)
return op.Output(0)
}

// Returns the truth value of (x > y) element-wise.
//
// *NOTE*: `Greater` supports broadcasting. More about broadcasting
Expand Down Expand Up @@ -57782,6 +57798,28 @@ func Unstage(scope *Scope, dtypes []tf.DataType, optional ...UnstageAttr) (value
return values
}

// An op to update the task ID and global core array.
//
// This op is to update the task ID and global core array.
//
// Arguments:
//
// tpu_task_id_to_shard_id: An array of int32 that maps TPU task ID to shard ID.
//
// Returns the created operation.
func UpdateTaskIdAndGlobalCoreArray(scope *Scope, tpu_task_id_to_shard_id []tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "UpdateTaskIdAndGlobalCoreArray",
Input: []tf.Input{
tf.OutputList(tpu_task_id_to_shard_id),
},
}
return scope.AddOperation(opspec)
}

// UpperBoundAttr is an optional argument to UpperBound.
type UpperBoundAttr func(optionalAttr)

Expand Down

0 comments on commit c4838c0

Please sign in to comment.