Linux递归搜索特定文件内容

224 阅读1分钟

Linux递归搜索特定文件内容

因为PyTorch报 Warning 很讨厌:
[W IndexingUtils.h:20] Warning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead. (function expandTensors)

所以想把这些 uint8 都转到 bool 来,对代码又不熟悉,所以就需要搜索哪里用到了 uint8,如下:

grep -r uint8 .

. 就是在当前目录下找,uint8 是要找的内容,-r 就是递归recursive