Rashed-MM

Results 5 comments of Rashed-MM

`sudo apt-get install build-essential` I think you missing installed, you should be able to build your custom op with Bazel. If you continue to encounter errors, it may be helpful...

@YogaVicky Sure! Here is an example of a custom op written using the C API that can be compiled and executed after being loaded with tf.load_op_library(): ``` #include "tensorflow/core/framework/op.h" #include...

To compile this custom op, you will need to build it as a shared library. One way to do this is to use the TensorFlow C++ library and build the...

Run the following command to build the shared library: `bazel build -c opt //path/to/custom/op:my_add_op` This will build a shared library named libmy_add_op.so in the bazel-bin directory. To execute the custom...

``` # First, build the profiler options opts = (tf.profiler.ProfileOptionBuilder(tf.profiler.ProfileOptionBuilder.time_and_memory()) .with_step(-1) # profile the last step .with_accelerator_memory_usage(True) .with_node_name_regex('.*') # profile all nodes .build()) # Next, create a session and run...