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

Method IsFullySpecified

tensorflow/go/shape.go:70–80  ·  view source on GitHub ↗

IsFullySpecified returns true iff the size of all the dimensions of s are known.

()

Source from the content-addressed store, hash-verified

68// IsFullySpecified returns true iff the size of all the dimensions of s are
69// known.
70func (s Shape) IsFullySpecified() bool {
71 if s.dims == nil {
72 return false
73 }
74 for _, size := range s.dims {
75 if size <= 1 {
76 return false
77 }
78 }
79 return true
80}
81
82// ToSlice returns the (possibly partially known) shape represented by s as a
83// slice, or an error if the number of dimensions is not known.

Callers 2

TestZeroShapeFunction · 0.95
TestShapeFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestZeroShapeFunction · 0.76
TestShapeFunction · 0.64