Results 206 comments of Ayaka

coscmd 是使用 Python 标准库的 [`fnmatch.fnmatch`](https://docs.python.org/3/library/fnmatch.html#fnmatch.fnmatch) 函数判断文件名是否匹配的。`fnmatch` 函数不会对 `/` 作单独处理,而是把它当作文件名的一部分,按照匹配文件名的方式进行匹配。 由此可以总结出 coscmd 通配符的常见用法如下: - 忽略当前目录下的 `index.js` 文件:`./index.js` - 忽略所有 `index.js` 文件:`*/index.js` - 忽略当前目录下的 `*.csv` 文件:`./*.csv` - 忽略所有 `*.csv` 文件:`*.csv` - 忽略当前目录下的...

Hi, @Aqzhyi. I have just checked and I can run your code without any errors. ```javascript import * as OpenCC from 'opencc-js'; const toTW = OpenCC.Converter({ from: 'cn', to: 'tw'...

@skye I found at least one of the cause of the problem: ```sh $ export TF_CPP_MIN_LOG_LEVEL=0 $ python3 -c 'import jax; print(jax.devices())' 2022-04-09 23:15:46.156187: I external/org_tensorflow/tensorflow/core/tpu/tpu_initializer_helper.cc:68] libtpu.so already in used...

@skye This is indeed the cause of the problem! And this also explains why TPU is available for one user but not for others: ```sh (user1) $ ls -l /tmp/libtpu_lockfile...

@skye Haven't seen you on GitHub for a long time. I miss you so much! > Just to make sure I understand, is the issue that /tmp/libtpu_lockfile sometimes exists even...

Sometimes the Python process was aborted, and therefore the file is not removed. For example, ```python import jax devices = jax.devices() import sys sys.exit(-1) ``` The set of commands above...

@jakevdp Thank you! I agree that attempting to preserve the original device can be problematic. My suggestion is that we should give priority to implementing a `with` block to specify...

@mattjj Thank you for the reply, but this issue is not solved. `jax.default_device` works when creating the array, but does not work when loading the array from pickle: ```python import...