1

我已经实现了一种方法,用于在培训期间对示例进行预处理。

我能够将其归结为一个特定的功能。如果我在训练期间使用它,我会在我的日志中看到:

INFO:tensorflow:Running local_init_op.
INFO:tensorflow:Done running local_init_op.
INFO:tensorflow:Saving checkpoints for 0 into /mariana/models/.model=ed6f9dfedc5dbba0_shards=9e8a89eceebc4a45/checkpoints/model.ckpt.
2019-12-12 11:36:07.608652: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.
2019-12-12 11:36:07.608709: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.
...
2019-12-12 11:36:08.105489: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.
2019-12-12 11:36:08.105494: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.
2019-12-12 11:36:08.105494: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.
2019-12-12 11:36:08.105494: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.
2019-12-12 11:36:08.105728: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.
2019-12-12 11:36:08.105754: W tensorflow/core/framework/op_kernel.cc:1273] OP_REQUIRES failed at strided_slice_op.cc:106 : Invalid argument: slice index 0 of dimension 1 out of bounds.

我无法在我的单元测试中重现此问题,也无法在另一个项目中重现此问题,在那里我使用相同的功能而没有错误。

由于我没有得到堆栈跟踪,因此我不知道问题是什么或在哪里查找错误。

有没有办法从 tensorflow 获取更多关于此类错误的信息?

4

0 回答 0