(logdir: string)
| 501 | // TensorBoard-related (tfjs-node-specific) backend kernels. |
| 502 | |
| 503 | summaryWriter(logdir: string): Tensor1D { |
| 504 | const opAttrs = [ |
| 505 | { |
| 506 | name: 'shared_name', |
| 507 | type: this.binding.TF_ATTR_STRING, |
| 508 | value: `logdir:${logdir}` |
| 509 | }, |
| 510 | {name: 'container', type: this.binding.TF_ATTR_STRING, value: ''} |
| 511 | ]; |
| 512 | const writerResource = |
| 513 | this.executeSingleOutput('SummaryWriter', opAttrs, []); |
| 514 | return writerResource as Tensor1D; |
| 515 | } |
| 516 | |
| 517 | createSummaryFileWriter( |
| 518 | resourceHandle: Tensor, logdir: string, maxQueue?: number, |
no test coverage detected