Saves the input tensors to disk. 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`. Arguments: filename: Must have a single element. The name of the file to which we write the tensor. tens
(scope *Scope, filename tf.Output, tensor_names tf.Output, data []tf.Output)
| 15694 | // |
| 15695 | // Returns the created operation. |
| 15696 | func Save(scope *Scope, filename tf.Output, tensor_names tf.Output, data []tf.Output) (o *tf.Operation) { |
| 15697 | if scope.Err() != nil { |
| 15698 | return |
| 15699 | } |
| 15700 | opspec := tf.OpSpec{ |
| 15701 | Type: "Save", |
| 15702 | Input: []tf.Input{ |
| 15703 | filename, tensor_names, tf.OutputList(data), |
| 15704 | }, |
| 15705 | } |
| 15706 | return scope.AddOperation(opspec) |
| 15707 | } |
| 15708 | |
| 15709 | // MaxPoolGradGradV2Attr is an optional argument to MaxPoolGradGradV2. |
| 15710 | type MaxPoolGradGradV2Attr func(optionalAttr) |