MCPcopy Create free account
hub / github.com/pytorch/pytorch / render

Method render

torch/utils/model_dump/code.js:299–304  ·  view source on GitHub ↗
({data, indent, prefix}, {shown})

Source from the content-addressed store, hash-verified

297 }
298
299 render({data, indent, prefix}, {shown}) {
300 const exp = this.expando(data) ? html`<span class=caret onClick=${() => this.click()} >${caret(shown)} </span>` : "";
301 const headline = this.renderHeadline(data);
302 const body = shown ? this.renderBody(indent, data) : "";
303 return html`${indent}${exp}${prefix}${headline}${body}`;
304 }
305}
306
307function ZipContentsSection({model: {zip_files}}) {

Callers

nothing calls this directly

Calls 5

expandoMethod · 0.95
clickMethod · 0.95
renderHeadlineMethod · 0.95
renderBodyMethod · 0.95
caretFunction · 0.85

Tested by

no test coverage detected