Go: Update generated wrapper functions for TensorFlow ops.

PiperOrigin-RevId: 326491234
Change-Id: I1e19ff61a971231248727f2a1e737a495837b621
This commit is contained in:
A. Unique TensorFlower 2020-08-13 11:45:39 -07:00 committed by TensorFlower Gardener
parent e277d41a34
commit 2fd541c4f2

View File

@ -20134,6 +20134,24 @@ func LogicalAnd(scope *Scope, x tf.Output, y tf.Output) (z tf.Output) {
return op.Output(0)
}
// Writes a graph summary.
//
// Writes TensorFlow graph `tensor` at `step` using summary `writer`.
//
// Returns the created operation.
func WriteGraphSummary(scope *Scope, writer tf.Output, step tf.Output, tensor tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "WriteGraphSummary",
Input: []tf.Input{
writer, step, tensor,
},
}
return scope.AddOperation(opspec)
}
// ApproximateEqualAttr is an optional argument to ApproximateEqual.
type ApproximateEqualAttr func(optionalAttr)
@ -20761,6 +20779,24 @@ func TruncateDiv(scope *Scope, x tf.Output, y tf.Output) (z tf.Output) {
return op.Output(0)
}
// Writes a serialized proto summary.
//
// Writes `tensor`, a serialized proto at `step` using summary `writer`.
//
// Returns the created operation.
func WriteRawProtoSummary(scope *Scope, writer tf.Output, step tf.Output, tensor tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "WriteRawProtoSummary",
Input: []tf.Input{
writer, step, tensor,
},
}
return scope.AddOperation(opspec)
}
// Returns 0 if the denominator is zero.
//
//
@ -28650,6 +28686,43 @@ func IteratorFromStringHandle(scope *Scope, string_handle tf.Output, optional ..
return op.Output(0)
}
// WriteAudioSummaryAttr is an optional argument to WriteAudioSummary.
type WriteAudioSummaryAttr func(optionalAttr)
// WriteAudioSummaryMaxOutputs sets the optional max_outputs attribute to value.
// If not specified, defaults to 3
//
// REQUIRES: value >= 1
func WriteAudioSummaryMaxOutputs(value int64) WriteAudioSummaryAttr {
return func(m optionalAttr) {
m["max_outputs"] = value
}
}
// Writes an audio summary.
//
// Writes encoded audio summary `tensor` at `step` with `tag` using summary `writer`.
// `sample_rate` is the audio sample rate is Hz.
//
// Returns the created operation.
func WriteAudioSummary(scope *Scope, writer tf.Output, step tf.Output, tag tf.Output, tensor tf.Output, sample_rate tf.Output, optional ...WriteAudioSummaryAttr) (o *tf.Operation) {
if scope.Err() != nil {
return
}
attrs := map[string]interface{}{}
for _, a := range optional {
a(attrs)
}
opspec := tf.OpSpec{
Type: "WriteAudioSummary",
Input: []tf.Input{
writer, step, tag, tensor, sample_rate,
},
Attrs: attrs,
}
return scope.AddOperation(opspec)
}
// Outputs a `Summary` protocol buffer with a histogram.
//
// The generated
@ -33205,6 +33278,24 @@ func AddManySparseToTensorsMap(scope *Scope, sparse_indices tf.Output, sparse_va
return op.Output(0)
}
// Writes a histogram summary.
//
// Writes histogram `values` at `step` with `tag` using summary `writer`.
//
// Returns the created operation.
func WriteHistogramSummary(scope *Scope, writer tf.Output, step tf.Output, tag tf.Output, values tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "WriteHistogramSummary",
Input: []tf.Input{
writer, step, tag, values,
},
}
return scope.AddOperation(opspec)
}
// Computes tan of x element-wise.
//
// Given an input tensor, this function computes tangent of every
@ -34075,6 +34166,24 @@ func ShardedFilespec(scope *Scope, basename tf.Output, num_shards tf.Output) (fi
return op.Output(0)
}
// Writes a scalar summary.
//
// Writes scalar `value` at `step` with `tag` using summary `writer`.
//
// Returns the created operation.
func WriteScalarSummary(scope *Scope, writer tf.Output, step tf.Output, tag tf.Output, value tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "WriteScalarSummary",
Input: []tf.Input{
writer, step, tag, value,
},
}
return scope.AddOperation(opspec)
}
// RetrieveTPUEmbeddingProximalAdagradParametersAttr is an optional argument to RetrieveTPUEmbeddingProximalAdagradParameters.
type RetrieveTPUEmbeddingProximalAdagradParametersAttr func(optionalAttr)
@ -41188,6 +41297,43 @@ func WriteFile(scope *Scope, filename tf.Output, contents tf.Output) (o *tf.Oper
return scope.AddOperation(opspec)
}
// WriteImageSummaryAttr is an optional argument to WriteImageSummary.
type WriteImageSummaryAttr func(optionalAttr)
// WriteImageSummaryMaxImages sets the optional max_images attribute to value.
// If not specified, defaults to 3
//
// REQUIRES: value >= 1
func WriteImageSummaryMaxImages(value int64) WriteImageSummaryAttr {
return func(m optionalAttr) {
m["max_images"] = value
}
}
// Writes an image summary.
//
// Writes image `tensor` at `step` with `tag` using summary `writer`.
// `tensor` is image with shape [height, width, channels].
//
// Returns the created operation.
func WriteImageSummary(scope *Scope, writer tf.Output, step tf.Output, tag tf.Output, tensor tf.Output, bad_color tf.Output, optional ...WriteImageSummaryAttr) (o *tf.Operation) {
if scope.Err() != nil {
return
}
attrs := map[string]interface{}{}
for _, a := range optional {
a(attrs)
}
opspec := tf.OpSpec{
Type: "WriteImageSummary",
Input: []tf.Input{
writer, step, tag, tensor, bad_color,
},
Attrs: attrs,
}
return scope.AddOperation(opspec)
}
// MatrixSolveAttr is an optional argument to MatrixSolve.
type MatrixSolveAttr func(optionalAttr)
@ -41719,6 +41865,24 @@ func Batch(scope *Scope, in_tensors []tf.Output, num_batch_threads int64, max_ba
return batched_tensors, batch_index, id
}
// Writes a tensor summary.
//
// Writes `tensor` at `step` with `tag` using summary `writer`.
//
// Returns the created operation.
func WriteSummary(scope *Scope, writer tf.Output, step tf.Output, tensor tf.Output, tag tf.Output, summary_metadata tf.Output) (o *tf.Operation) {
if scope.Err() != nil {
return
}
opspec := tf.OpSpec{
Type: "WriteSummary",
Input: []tf.Input{
writer, step, tensor, tag, summary_metadata,
},
}
return scope.AddOperation(opspec)
}
// UnicodeDecodeAttr is an optional argument to UnicodeDecode.
type UnicodeDecodeAttr func(optionalAttr)