Searched refs:value_or_tensor_or_var (Results 1 – 1 of 1) sorted by relevance
142 def constant_value(value_or_tensor_or_var, dtype=None): argument157 if value_or_tensor_or_var is None:159 value = value_or_tensor_or_var160 if isinstance(value_or_tensor_or_var, (ops.Tensor, variables.Variable)):161 if dtype and value_or_tensor_or_var.dtype != dtype:163 value_or_tensor_or_var.dtype, dtype))164 if isinstance(value_or_tensor_or_var, variables.Variable):167 value = tensor_util.constant_value(value_or_tensor_or_var)