tensorflow / profiler

A profiling and performance analysis tool for TensorFlow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Profiling integer dtype ops

zaccharieramzi opened this issue · comments

I would be interested in profiling ops that act on integer tensors on GPU.

For example I would like to profile the addition in the following fashion (see this colab with tboard):

import tensorflow as tf
chosen_dtype = tf.int32
a = tf.constant([7] * 100000, dtype=chosen_dtype)

with tf.profiler.experimental.Profile("logs"):
  for i in range(1):
    a + 3

However, doing this the profiler doesn't record any GPU operation. If I just change the chosen_dtype to tf.float32, then I have the correct GPU operations (in addition to the eager execution operations).

How can I profile integer dtype ops?

commented

You are right