2

From the Tensorflow add a new op tutorial, it uses:

TF_CFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') )
TF_LFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') )
g++ -std=c++11 -shared zero_out.cc -o zero_out.so -fPIC ${TF_CFLAGS[@]} ${TF_LFLAGS[@]} -O2

I am wondering the meaning of [@] here.

Florian Weimer
  • 32,022
  • 3
  • 48
  • 92
Panfeng Li
  • 3,321
  • 3
  • 26
  • 34
  • 2
    It's a bash-ism. https://www.gnu.org/software/bash/manual/html_node/Arrays.html#Arrays – Shawn Sep 27 '18 at 02:06

0 Answers0