@Operator public final class WriteFile extends PrimitiveOp
creates directory if not existing.
operation| Modifier and Type | Method and Description |
|---|---|
static WriteFile |
create(Scope scope,
Operand<String> filename,
Operand<String> contents)
Factory method to create a class to wrap a new WriteFile operation to the graph.
|
equals, hashCode, toStringpublic static WriteFile create(Scope scope, Operand<String> filename, Operand<String> contents)
scope - current graph scopefilename - scalar. The name of the file to which we write the contents.contents - scalar. The content to be written to the output file.Copyright © 2015–2019. All rights reserved.