MCPcopy Index your code
hub / github.com/lutzroeder/netron / _target_to_str

Method _target_to_str

source/python.js:8974–8983  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

8972 return this.create_node('output', 'output', new builtins.tuple(result), null, type_expr);
8973 }
8974 _target_to_str(target) {
8975 if (typeof target === 'string') {
8976 if (target.startsWith('__') && target.endsWith('__')) {
8977 target = target.substring(2, target.length - 2);
8978 }
8979 } else {
8980 target = target.__name__;
8981 }
8982 return this._snake_case(target);
8983 }
8984 _snake_case(s) {
8985 const chars = [];
8986 let prev_lower = false;

Callers 1

create_nodeMethod · 0.80

Calls 1

_snake_caseMethod · 0.80

Tested by

no test coverage detected