텐서플로우:: 작전:: 복원슬라이스

#include <io_ops.h>

체크포인트 파일에서 텐서를 복원합니다.

요약

이는 복원된 텐서가 더 큰 텐서의 한 조각만 채우는 것으로 나열될 수 있다는 점을 제외하면 Restore 같습니다. shape_and_slice 더 큰 텐서의 모양과 복원된 텐서가 다루는 슬라이스를 지정합니다.

shape_and_slice 입력은 SaveSlices 작업의 shapes_and_slices 입력 요소와 동일한 형식을 갖습니다.

인수:

  • 범위: 범위 개체
  • file_pattern: 단일 요소가 있어야 합니다. 텐서를 읽는 파일의 패턴입니다.
  • tensor_name: 단일 요소가 있어야 합니다. 복원할 텐서의 이름입니다.
  • Shape_and_slice: 스칼라. 텐서를 복원할 때 사용할 모양과 슬라이스 사양입니다.
  • dt: 복원할 텐서의 유형입니다.

선택적 속성( Attrs 참조):

  • Preferred_shard: 여러 파일이 file_pattern 일치하는 경우 먼저 열 파일의 인덱스입니다. Restore 에 대한 설명서를 참조하세요.

보고:

생성자와 소멸자

RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt)
RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs)

공개 속성

operation
tensor

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 정적 함수

PreferredShard (int64 x)

구조체

텐서플로우:: ops:: RestoreSlice:: 속성

RestoreSlice 에 대한 선택적 속성 설정자입니다.

공개 속성

작업

Operation operation

텐서

::tensorflow::Output tensor

공공 기능

복원슬라이스

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt
)

복원슬라이스

 RestoreSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input file_pattern,
  ::tensorflow::Input tensor_name,
  ::tensorflow::Input shape_and_slice,
  DataType dt,
  const RestoreSlice::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const 

공개 정적 함수

선호샤드

Attrs PreferredShard(
  int64 x
)