tensorflow :: ops :: FakeQuantWithMinMaxVarsPerChannel

#include <array_ops.h>

Quantize falsamente o tensor de 'entradas' do tipo float e uma das formas: [d] ,.

Resumo

[b, d] [b, h, w, d] via por canal flutua min e max de forma [d] para tensor de 'saídas' da mesma forma que as inputs .

[min; max] define a faixa de fixação para os dados de inputs . inputs valores das inputs são quantizados no intervalo de quantização ( [0; 2^num_bits - 1] quando narrow_range é falsa e [1; 2^num_bits - 1] quando é verdadeiro) e então de-quantizados e emitidos como flutuantes em [min; max] intervalo. num_bits é a largura de bits da quantização; entre 2 e 16, inclusive.

Antes da quantização, os valores min e max são ajustados com a seguinte lógica. É sugerido ter min <= 0 <= max . Se 0 não estiver na faixa de valores, o comportamento pode ser inesperado: Se 0 < min < max : min_adj = 0 e max_adj = max - min . Se min < max < 0 : min_adj = min - max e max_adj = 0 . Se min <= 0 <= max : scale = (max - min) / (2^num_bits - 1) , min_adj = scale * round(min / scale) e max_adj = max + min_adj - min .

Esta operação possui um gradiente e, portanto, permite o treinamento dos valores min e max .

Argumentos:

Retorna:

  • Output : o tensor de saída.

Construtores e Destruidores

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)

Atributos públicos

operation
outputs

Funções públicas

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

Funções estáticas públicas

NarrowRange (bool x)
NumBits (int64 x)

Structs

tensorflow :: ops :: FakeQuantWithMinMaxVarsPerChannel :: Attrs

Configuradores de atributos opcionais para FakeQuantWithMinMaxVarsPerChannel .

Atributos públicos

Operação

Operation operation

saídas

::tensorflow::Output outputs

Funções públicas

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 

operador :: tensorflow :: Input

 operator::tensorflow::Input() const 

operador :: tensorflow :: Saída

 operator::tensorflow::Output() const 

Funções estáticas públicas

Curto alcance

Attrs NarrowRange(
  bool x
)

NumBits

Attrs NumBits(
  int64 x
)