Commit 4b553d23 authored by Yong Tang's avatar Yong Tang Committed by Martin Wicke
Browse files

Fix several minor issues with C++ custom ops (`adding_an_op.md`) documentation (#8546)



This fix tries to address several issues related to C++ custom ops
(`adding_an_op.md`) documentation:
1. The `tf.load_op_library('zero_out.so')` should use full path or relative path (`./`)
   (This issue has been raised in #4727 as well).
2. The mentioning of `zero_out_op_1.py` and `tf.load_op_library('zero_out_op_kernel_1.so')`
   is really misleading. While `zero_out_op_1.py` is located in
   `tensorflow/examples/adding_an_op/`, the documentation (`adding_an_op.md`) does not
   really use `zero_out_op_1.py`. It is better to use the `zero_out.cc` that
   is presented in the doc.

This fix changes `tf.load_op_library('zero_out.so')` to `tf.load_op_library('./zero_out.so')`
and updates a few places so that following the documentation could have the expected result.

This fix fixes #4727.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent dead5955
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment