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

Function All

tensorflow/go/op/wrappers.go:11888–11905  ·  view source on GitHub ↗

Computes the "logical and" of elements across dimensions of a tensor. Reduces `input` along the dimensions given in `axis`. Unless `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in `axis`. If `keep_dims` is true, the reduced dimensions are retained with length 1. Argume

(scope *Scope, input tf.Output, axis tf.Output, optional ...AllAttr)

Source from the content-addressed store, hash-verified

11886//
11887// Returns The reduced tensor.
11888func All(scope *Scope, input tf.Output, axis tf.Output, optional ...AllAttr) (output tf.Output) {
11889 if scope.Err() != nil {
11890 return
11891 }
11892 attrs := map[string]interface{}{}
11893 for _, a := range optional {
11894 a(attrs)
11895 }
11896 opspec := tf.OpSpec{
11897 Type: "All",
11898 Input: []tf.Input{
11899 input, axis,
11900 },
11901 Attrs: attrs,
11902 }
11903 op := scope.AddOperation(opspec)
11904 return op.Output(0)
11905}
11906
11907// Delete the TensorArray from its resource container.
11908//

Callers 1

TEST_FFunction · 0.85

Calls 4

aClass · 0.85
ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 1

TEST_FFunction · 0.68