Skip to content

Commit 6eb43fc

Browse files
Akshay Modigunan
Akshay Modi
authored andcommitted
Fix test user ops
PiperOrigin-RevId: 199171316
1 parent a3c642c commit 6eb43fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tensorflow/tools/ci_build/builds/test_user_ops.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,9 @@ function run_op() {
239239
fi
240240
}
241241

242-
run_op $("${PYTHON_BIN_PATH}" -c "import tensorflow as tf; print(tf.Session('').run(tf.load_op_library('./${USER_OP_SO}').${USER_OP}(${OP_INPUT})))")
243-
run_op $("${PYTHON_BIN_PATH}" -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.load_op_library('./${USER_OP_SO}').${USER_OP}(${OP_INPUT}))") " in eager mode"
242+
run_op "$("${PYTHON_BIN_PATH}" -c "import tensorflow as tf; print(tf.Session('').run(tf.load_op_library('./${USER_OP_SO}').${USER_OP}(${OP_INPUT})))")"
243+
run_op "$("${PYTHON_BIN_PATH}" -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.load_op_library('./${USER_OP_SO}').${USER_OP}(${OP_INPUT}).numpy())")" " in eager mode"
244+
244245

245246
popd
246247

0 commit comments

Comments
 (0)