MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Save

Function Save

tensorflow/go/op/wrappers.go:15696–15707  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

15694//
15695// Returns the created operation.
15696func 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.
15710type MaxPoolGradGradV2Attr func(optionalAttr)

Callers 5

SaveMethod · 0.85
SaveMethod · 0.85
LOCKS_EXCLUDEDMethod · 0.85
BM_LargeTensorWriteFunction · 0.85
RecordDataTransferMethod · 0.85

Calls 2

ErrMethod · 0.45
AddOperationMethod · 0.45

Tested by 1

BM_LargeTensorWriteFunction · 0.68