MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TensorDataset

Function TensorDataset

tensorflow/go/op/wrappers.go:17703–17717  ·  view source on GitHub ↗

Creates a dataset that emits `components` as a tuple of tensors once.

(scope *Scope, components []tf.Output, output_shapes []tf.Shape)

Source from the content-addressed store, hash-verified

17701
17702// Creates a dataset that emits `components` as a tuple of tensors once.
17703func 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//

Callers 1

TestDatasetFunction · 0.70

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 1

TestDatasetFunction · 0.56