向后扩展一个dim值,如果扩展的dim数量超出Shape的最大限制,那么本函数不做任何事情。
Shape& AppendDim(const int64_t value)
this引用。
无
Shape shape0({3, 256, 256}); shape0.AppendDim(1024); // 3,256,256,1024