Creates a dataset that emits `components` as a tuple of tensors once.
(scope *Scope, components []tf.Output, output_shapes []tf.Shape)
| 17701 | |
| 17702 | // Creates a dataset that emits `components` as a tuple of tensors once. |
| 17703 | func TensorDataset(scope *Scope, components []tf.Output, output_shapes []tf.Shape) (handle tf.Output) { |
| 17704 | if scope.Err() != nil { |
| 17705 | return |
| 17706 | } |
| 17707 | attrs := map[string]interface{}{"output_shapes": output_shapes} |
| 17708 | opspec := tf.OpSpec{ |
| 17709 | Type: "TensorDataset", |
| 17710 | Input: []tf.Input{ |
| 17711 | tf.OutputList(components), |
| 17712 | }, |
| 17713 | Attrs: attrs, |
| 17714 | } |
| 17715 | op := scope.AddOperation(opspec) |
| 17716 | return op.Output(0) |
| 17717 | } |
| 17718 | |
| 17719 | // Adjust the contrast of one or more images. |
| 17720 | // |