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

Method uniqueName

tensorflow/go/op/scope.go:171–178  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

169}
170
171func (s *Scope) uniqueName(name string) string {
172 count := s.namemap[name]
173 s.namemap[name]++
174 if count == 0 {
175 return name
176 }
177 return fmt.Sprint(name, "_", count)
178}
179
180func (s *Scope) opName(typ string) string {
181 if s.namespace == "" {

Callers 1

SubScopeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected