[INFO] Installing environment for [链接][INFO] Once installed this environment will be reused.[INFO] This may take a few minutes...An unexpected error has occurred: CalledProcessError: Command: ('/usr/bin/python', '-m', 'virtualenv', '/data/home/wanghuimin/.cache/pre-commit/repooNH01N/py_env-pyth...
我正在尝试使用 TF2.4 和 Keras 并使用 tf.nn.sampled_softmax_loss 来训练词嵌入分类器。但是,当调用模型的 fit 方法时,出现“Cannot convert a symbolic Keras input/output to a numpy array”TypeError。请帮助我修复错误或使用替代方法进行候选抽样。