In this paper, we describe an FPGA stereo vision system with lower error rate and high processing speed. In our system, two algorithms, the cost aggregation and fast locally consistent dense stereo, are used to achieve the lower error rate on the pipelined circuit while maintaining the high processing speed. We have evaluated the performance of the circuit on Xilinx Vertex-6 FPGAs. Its error rate is competitive with the top-level software algorithms, and its processing speed is almost 2 clock cycles per pixel, which reaches to 507.4 fps for 640 × 480 pixel images.
As deep learning empowers various fields, many domain-specific non-neural network operators have been proposed to improve the accuracy of deep learning models. Researchers often use the imperative programming diagram (PyTorch) to express these new operators, leaving the fusion optimization of these operators to deep learning compilers. Unfortunately, the inherent side effects introduced by imperative tensor programs, especially tensor-level mutations, often make optimization extremely difficult. Previous works either fail to eliminate the side effects of tensor-level mutations or require programmers to manually analyze and transform them. In this paper, we present a holistic functionalization approach (TensorSSA) to optimizing imperative tensor programs beyond control flow boundaries. We first introduce TensorSSA intermediate representation for removing tensor-level mutation and expanding the scope and ability of operator fusion. Based on TensorSSA IR, we propose a TensorSSA conversion algorithm that performs functionalization crossing the boundary of control flow. TensorSSA achieves a 1.79X (1.34X on average) speedup in representative deep learning tasks than state-of-the-art works.