MCPcopy
hub / github.com/lutzroeder/netron / isValidName

Method isValidName

source/python.js:13172–13180  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

13170 !(this.type() instanceof torch.UnionType && this.type().expect(torch.UnionType).canHoldType(torch.NoneType.get()));
13171 }
13172 isValidName(name) {
13173 if (name.length === 0) {
13174 return true;
13175 }
13176 if (torch._C.isNumber(name)) {
13177 return false;
13178 }
13179 return true;
13180 }
13181 hasDebugName() {
13182 return this._unique_name && this._unique_name.length > 0;
13183 }

Callers 1

setDebugNameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected