FP32 Tensor to Int8 Quantization
Last asked Feb 12, 2026 Roles SWE MLE
Given an FP32 tensor and a floating-point scale, convert the tensor to INT8. Follow-ups add asymmetric quantization with zero point and ask how scale / zero point should change when the input distribution is not symmetric. Implement a function that takes: ``python def quantize_fp32_to_int8(x: np.ndarray, scale: float) -> np.ndarray: ... Base behavior: - x is an FP32 tensor of any shape. - Divide every value by scale. - Round or cast into signed int8 range. - Return an int8 tensor with the same shape. ### Variant — OJ The OJ variant states the formulas explicitly, treating x` as a
numpy inference numerical-stability
NVIDIA Members-only question
Last asked Oct 29, 2026 Roles SWE
hashmap data-validation deduplication data-processing
NVIDIA Members-only question
Last asked Oct 24, 2026 Roles MLE SWE RS
gpu kernel inference matmul transformer
+ 51 more NVIDIA questions
New users receive 1 free token Sign up to unlock a question or try a solve
Get Started
NVIDIA Members-only question
Last asked Oct 24, 2026 Roles SWE
gpu rdma benchmarking networking performance
NVIDIA Members-only question
Last asked Oct 24, 2026 Roles SWE
c memory-management pointers bit-manipulation
NVIDIA Members-only question
Last asked Oct 21, 2026 Roles SWE
arrays hashing prefix-sum gpu parallel-algorithms
NVIDIA Members-only question
Last asked Oct 20, 2026 Roles SWE
programming-languages java python
NVIDIA Members-only question
Last asked Oct 17, 2026 Roles SWE
http pagination json filtering data-processing
NVIDIA Members-only question
Last asked Oct 16, 2026 Roles SWE
design hashmap linked-list cache
NVIDIA Members-only question
Last asked Oct 12, 2026 Roles SWE
hashing hash-table concurrency atomics gpu
NVIDIA Members-only question
Last asked Oct 6, 2026 Roles SWE
scripting http json system-metrics sliding-window
NVIDIA Members-only question
Last asked Sep 22, 2026 Roles SWE
hashmap heap bucket streaming linked-list
NVIDIA Members-only question
Last asked Sep 22, 2026 Roles SWE
two-pointers external-sort merge file-io distributed-systems
NVIDIA Members-only question
Last asked Sep 22, 2026 Roles SWE
NVIDIA Members-only question
Last asked Sep 22, 2026 Roles SWE
cpp memory-management smart-pointers raii
NVIDIA Members-only question
Last asked Jul 3, 2026 Roles DS SWE
data-engineering etl streaming metrics debugging
NVIDIA Members-only question
Last asked Apr 26, 2026 Roles SWE
string-processing parsing compression
NVIDIA Members-only question
Last asked Apr 15, 2026 Roles SWE
NVIDIA Members-only question
Last asked Apr 15, 2026 Roles SWE
grid performance-modeling memory-bounded
NVIDIA Members-only question
Last asked Feb 12, 2026 Roles SWE MLE
graph topological-sort dfs inference
NVIDIA Members-only question
Last asked Feb 5, 2026 Roles SWE
NVIDIA Members-only question
Last asked Jan 29, 2026 Roles MLE RS
ml-knowledge optimization calibration distribution
NVIDIA Members-only question
Last asked Dec 10, 2025 Roles MLE SWE RS
numpy pytorch attention gradient-descent
NVIDIA Members-only question
NVIDIA Members-only question
NVIDIA Members-only question
NVIDIA Members-only question
NVIDIA Members-only question
NVIDIA Members-only question
NVIDIA Members-only question