def _benchmark_tfe_py_execute_matmul(self, m, transpose_b, num_iters):
    inputs = [m, m]
    ctx_handle = context.context()._handle
    device = context.context().device_name
    attrs = ('transpose_a', False, 'transpose_b', transpose_b, 'T', m.dtype.as_datatype_enum)

    def func():
        pywrap_tensorflow.TFE_Py_Execute(ctx_handle, device, 'MatMul', inputs, attrs, 1)
    self._run(func, num_iters)
def _benchmark_tfe_py_execute_matmul(self, m, transpose_b, num_iters):
    inputs = [m, m]
    ctx_handle = context.context()._handle
    device = context.context().device_name
    attrs = ('transpose_a', False, 'transpose_b', transpose_b, 'T', m.dtype.as_datatype_enum)

    def func():
        pywrap_tensorflow.TFE_Py_Execute(ctx_handle, device, 'MatMul', inputs, attrs, 1)
    self._run(func, num_iters)