【留档】一个好看的latex表格

latex

\begin{table*}
    \caption{Acceleration}
    \label{tab_acceleration}
    \begin{tabular}{cccc}
      \toprule
      Computation Backend & Hardware Platform & Time Per Step  &  Acceleration Factor\\ 
      \midrule
      CPU &  Intel Xeon Gold 5218R, 2x20 Cores, 80 Threads & 2.06 &   - \\ 
      CPU & AMD EPYC 7713, 2x64 Cores, 256 Threads & 0.440 & 4.68 \\
      Vulkan & Nvidia GeForce RTX 3090 & 0.111 & 18.6 \\
      CUDA & Nvidia GeForce RTX 3090 & 0.0477 & 43.2 \\
      Vulkan & Nvidia A100 Tensor Core GPU & 0.101 & 20.4\\
      CUDA & Nvidia A100 Tensor Core GPU & 0.0401 & 51.4\\
      \bottomrule
    \end{tabular}
\end{table*}

效果:
在这里插入图片描述

使用AdjustBox

\usepackage{adjustbox}

有效解决超出页边距的问题

\begin{table*}
    \centering
    \caption*{Table 1: Configurations}
    \label{tab_acceleration}
    \begin{adjustbox}{width=\textwidth,center}
        \begin{tabular}{cccc}
        \toprule
        Model & Learning rate & Num-layers  &  Embedding/Hidden-dim \\ 
        \midrule
        LSTM-LM & 0.001 & 3 &  256/512 \\ 
        LSTM-Seq2Seq & 0.001  & 3 & 256 \\
        Transformer-LM & 0.001 & 3 & 256  \\
        Transformer-Seq2Seq & 0.001 & 3 & 256 \\
        \bottomrule
        \end{tabular}
    \end{adjustbox}
\end{table*}
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值