MCPcopy Create free account
hub / github.com/CodingBeard/tfkg / UniqueName

Function UniqueName

layer/interface.go:52–58  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

50var uniqueNameCounts = make(map[string]int)
51
52func UniqueName(name string) string {
53 count := uniqueNameCounts[name]
54 count++
55 uniqueNameCounts[name] = count
56
57 return fmt.Sprintf("%s_%d", name, count)
58}
59
60func (d *DataType) String() string {
61 return string(*d)

Callers 15

HashingFunction · 0.70
RandomWidthFunction · 0.70
GlobalMaxPooling2DFunction · 0.70
RandomTranslationFunction · 0.70
SubtractFunction · 0.70
DotFunction · 0.70
GlobalMaxPooling3DFunction · 0.70
NormalizationFunction · 0.70
AveragePooling3DFunction · 0.70
LeakyReLUFunction · 0.70
TextVectorizationFunction · 0.70
SyncBatchNormalizationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected