@Operator public final class Save extends PrimitiveOp
The size of `tensor_names` must match the number of tensors in `data`. `data[i]` is written to `filename` with name `tensor_names[i]`.
See also `SaveSlices`.
operation| Modifier and Type | Method and Description |
|---|---|
static Save |
create(Scope scope,
Operand<String> filename,
Operand<String> tensorNames,
Iterable<Operand<?>> data)
Factory method to create a class to wrap a new Save operation to the graph.
|
equals, hashCode, toStringpublic static Save create(Scope scope, Operand<String> filename, Operand<String> tensorNames, Iterable<Operand<?>> data)
scope - current graph scopefilename - Must have a single element. The name of the file to which we write
the tensor.tensorNames - Shape `[N]`. The names of the tensors to be saved.data - `N` tensors to save.Copyright © 2015–2019. All rights reserved.