{'fraction_non_alphanumeric': 0.03303684879288437, 'fraction_numerical': 0.007623888182973317, 'mean_word_length': 4.96969696969697, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Overview Of Tensor Layout In Modern Neural Network Accelerator

Modern neural network accelerator is widely used to accelerate the training or inference in neural network related works, such as CNN, RNN, NLP, etc. The tensor is the fundamental unit to store the neural network's data. In the paper, we profile two prevalent tensor layout NHWC and N(C/x)HWx to see different layout's influence to L1/L2 cache. We design a profiling framework which includes block splitting engine, tensor data loading engine and memory with hierarchy structure. Experimental results can show the different L1/L2 cache configurations' influence for cache hit/miss count, load/store count and evict count, etc., which can guide the basic hardware design for L1/L2 cache in modern neural network accelerator.