MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / setAxis

Method setAxis

include/NvInfer.h:6089–6092  ·  view source on GitHub ↗

\brief Set the quantization axis. Set the index of the quantization axis (with reference to the input tensor's dimensions). The axis must be a valid axis if the scale tensor has more than one coefficient. The axis value will be ignored if the scale tensor has exactly one coefficient (per-tensor quantization).

Source from the content-addressed store, hash-verified

6087 //! The axis value will be ignored if the scale tensor has exactly one coefficient (per-tensor quantization).
6088 //!
6089 void setAxis(int32_t axis) noexcept
6090 {
6091 mImpl->setAxis(axis);
6092 }
6093
6094protected:
6095 virtual ~IQuantizeLayer() noexcept = default;

Callers

nothing calls this directly

Calls 1

setAxisMethod · 0.45

Tested by

no test coverage detected