简体   繁体   中英

Could I implement my own convolution function to replace tf.nn.conv2d in tensorflow? How do I do?

I want to implement my own convolution function just like tf.nn.conv2d function in tensorflow. I want to know whether I could do this with existed interface provided by tensorflow. Someone advised me to implement this according to the "how to add a new op in tensorflow" tutorial at the tensorflow website. Should I really implement my function in C++ firstly, then add it to tensorflow?

You might want to take a look at How to make a custom activation function with only Python in Tensorflow?

patapouf_ai explains how to add an operation using python code (without the need to implement C++ code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM