Ron Shapiro aae0fc015b Support uint32 and uint64 in tf.get_static_value() from within a tf.function()
Attempting to do so without this change raises an exception:

```
File ".../tensorflow/python/ops/check_ops.py", line 672, in assert_equal
  data, summarize, message, name)
File ".../tensorflow/python/ops/check_ops.py", line 369, in _binary_assert
  x_static = tensor_util.constant_value(x)
File ".../tensorflow/python/framework/tensor_util.py", line 876, in constant_value
  ret = _ConstantValue(tensor, partial)
File ".../tensorflow/python/framework/tensor_util.py", line 681, in _ConstantValue
  return MakeNdarray(tensor.op.get_attr("value"))
File ".../tensorflow/python/framework/tensor_util.py", line 641, in MakeNdarray
  raise TypeError("Unsupported tensor type: %s" % tensor.dtype)
TypeError: Unsupported tensor type: 23
```
PiperOrigin-RevId: 356437863
Change-Id: I51d9adf8727bcf01ac3a862a608fa93e2cb6a88d
2021-02-08 23:51:41 -08:00
..
2021-01-15 16:48:57 -08:00
2020-06-28 18:41:22 +02:00
2020-09-08 18:59:38 -07:00
2020-11-03 12:14:05 -08:00
2020-06-28 18:41:22 +02:00
2020-10-29 16:21:24 +03:00
2020-02-11 15:09:21 +09:00
2020-06-23 23:24:20 +00:00
2020-07-29 10:59:13 -07:00
2020-10-07 12:29:14 -07:00