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

Function copy

tensorflow/python/lib/io/file_io.py:457–469  ·  view source on GitHub ↗

Copies data from `oldpath` to `newpath`. Args: oldpath: string, name of the file who's contents need to be copied newpath: string, name of the file to which to copy to overwrite: boolean, if false it's an error for `newpath` to be occupied by an existing file. Raises: err

(oldpath, newpath, overwrite=False)

Source from the content-addressed store, hash-verified

455
456@tf_export(v1=["gfile.Copy"])
457def copy(oldpath, newpath, overwrite=False):
458 """Copies data from `oldpath` to `newpath`.
459
460 Args:
461 oldpath: string, name of the file who's contents need to be copied
462 newpath: string, name of the file to which to copy to
463 overwrite: boolean, if false it's an error for `newpath` to be occupied by
464 an existing file.
465
466 Raises:
467 errors.OpError: If the operation fails.
468 """
469 copy_v2(oldpath, newpath, overwrite)
470
471
472@tf_export("io.gfile.copy")

Callers 15

ReadMethod · 0.50
full_dimsMethod · 0.50
CudnnFilterDescriptorMethod · 0.50
GetCudnnOperationGraphFunction · 0.50
QuantizeTensorFloat16Function · 0.50
AddMethod · 0.50
DecomposeBiasTensorFunction · 0.50

Calls 1

copy_v2Function · 0.85

Tested by 4

PrepareModelMethod · 0.40
mainFunction · 0.40