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

Method String

tensorflow/go/shape.go:93–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func (s Shape) String() string {
94 if s.dims == nil {
95 return "?"
96 }
97 ret := fmt.Sprint(s.dims)
98 for _, size := range s.dims {
99 if size < 0 {
100 ret = strings.Replace(ret, fmt.Sprint(size), "?", 1)
101 }
102 }
103 return strings.Replace(ret, " ", ", ", -1)
104}

Callers 12

TestZeroShapeFunction · 0.95
AddTfOpMethod · 0.45
WriteFlexOpOptionsFunction · 0.45
WriteOptionsMethod · 0.45
ExampleFunction · 0.45
TestShapeFunction · 0.45
mainFunction · 0.45
stripLeadingColonFunction · 0.45
newAPIDefMapFunction · 0.45
TRITONTF_TensorStringFunction · 0.45

Calls 1

ReplaceMethod · 0.45

Tested by 4

TestZeroShapeFunction · 0.76
AddTfOpMethod · 0.36
ExampleFunction · 0.36
TestShapeFunction · 0.36