컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 파일 쓰기
#include <io_ops.h>
입력 파일 이름의 파일에 내용을 씁니다.
요약
파일을 생성하고 재귀적으로
존재하지 않는 경우 디렉토리를 생성합니다.
인수:
- 범위: 범위 개체
- 파일명: 스칼라. 내용을 쓰는 파일의 이름입니다.
- 내용: 스칼라. 출력 파일에 기록될 내용입니다.
보고:
공개 속성
공공 기능
연산자::텐서플로우::작업
operator::tensorflow::Operation() const
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# tensorflow::ops::WriteFile Class Reference\n\ntensorflow::ops::WriteFile\n==========================\n\n`#include \u003cio_ops.h\u003e`\n\nWrites contents to the file at input filename.\n\nSummary\n-------\n\nCreates file and recursively\n\ncreates directory if not existing.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- filename: scalar. The name of the file to which we write the contents.\n- contents: scalar. The content to be written to the output file.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [WriteFile](#classtensorflow_1_1ops_1_1_write_file_1a0b63c63af08131b1edef0b954e9b3f0d)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` filename, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` contents)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_write_file_1ae280554653b226ad102867a40c276911) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_write_file_1af0ad99c4b33a1b5185455beb48fcdba5)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### WriteFile\n\n```gdscript\n WriteFile(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input filename,\n ::tensorflow::Input contents\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]