Commit 2cdbdee8 authored by Shanqing Cai's avatar Shanqing Cai Committed by TensorFlower Gardener
Browse files

Usability improvement for tf.constant_initializer

* Raise TypeError if the input value is not one of the expected types,
  e.g., a tf.Tensor. Previously, the error is delayed until Session.run()
  time and the message is very obscure, e.g.,
  "TypeError: Expected float32, got list containing Tensors of type
   '_Message' instead."

PiperOrigin-RevId: 180416775
parent 86caed27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment