텐서플로우:: 작전:: FakeQuantWithMinMaxVarsPerChannel

#include <array_ops.h>

float 유형의 '입력' 텐서와 다음 모양 중 하나를 가짜 양자화합니다: [d] ,.

요약

[b, d] [b, h, w, d] 채널별 minmax 모양 [d] 를 통해 inputs 과 동일한 모양의 텐서를 '출력'합니다.

[min; max] inputs 데이터의 클램핑 범위를 정의합니다. inputs 값은 양자화 범위( narrow_range 가 false인 경우 [0; 2^num_bits - 1] , true인 경우 [1; 2^num_bits - 1] )로 양자화된 다음 역양자화되어 [min; max] 간격. num_bits 는 양자화의 비트폭입니다. 2부터 16까지.

양자화하기 전에 minmax 값은 다음 논리로 조정됩니다. min <= 0 <= max 갖는 것이 좋습니다. 0 값 범위에 없으면 동작이 예상치 못한 것일 수 있습니다. 0 < min < max : min_adj = 0max_adj = max - min 인 경우. min < max < 0 인 경우: min_adj = min - maxmax_adj = 0 . min <= 0 <= max : scale = (max - min) / (2^num_bits - 1) , min_adj = scale * round(min / scale)max_adj = max + min_adj - min .

이 작업에는 기울기가 있으므로 minmax 값을 훈련할 수 있습니다.

인수:

보고:

생성자와 소멸자

FakeQuantWithMinMaxVarsPerChannel (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max)
FakeQuantWithMinMaxVarsPerChannel (const :: tensorflow::Scope & scope, :: tensorflow::Input inputs, :: tensorflow::Input min, :: tensorflow::Input max, const FakeQuantWithMinMaxVarsPerChannel::Attrs & attrs)

공개 속성

operation
outputs

공공 기능

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

공개 정적 함수

NarrowRange (bool x)
NumBits (int64 x)

구조체

텐서플로우:: ops:: FakeQuantWithMinMaxVarsPerChannel:: Attrs

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

공개 속성

작업

Operation operation

출력

::tensorflow::Output outputs

공공 기능

FakeQuantWithMinMaxVarsPerChannel

 FakeQuantWithMinMaxVarsPerChannel(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max
)

FakeQuantWithMinMaxVarsPerChannel

 FakeQuantWithMinMaxVarsPerChannel(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input inputs,
  ::tensorflow::Input min,
  ::tensorflow::Input max,
  const FakeQuantWithMinMaxVarsPerChannel::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

좁은 범위

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)