Home
last modified time | relevance | path

Searched refs:orelse_var (Results 1 – 2 of 2) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/operators/
Dcontrol_flow.py311 def verify_single_cond_var(name, body_var, orelse_var): argument
315 if orelse_var is None:
322 if isinstance(orelse_var, (bool, int, float, str, np.ndarray)):
323 orelse_var = ops.convert_to_tensor_v2(orelse_var)
326 not tensor_util.is_tf_type(orelse_var)):
331 not hasattr(orelse_var, 'dtype')):
334 if body_var.dtype != orelse_var.dtype:
338 orelse_var.dtype.name))
358 for name, body_var, orelse_var in named_vars:
360 nest.assert_same_structure(body_var, orelse_var, expand_composites=True)
[all …]
Dcontrol_flow_deprecated_py2.py223 def _verify_single_cond_var(name, body_var, orelse_var): argument
228 if isinstance(orelse_var, (bool, int, float, str)):
229 orelse_var = ops.convert_to_tensor_v2(orelse_var)
232 not tensor_util.is_tf_type(orelse_var)):
237 not hasattr(orelse_var, 'dtype')):
240 if body_var.dtype != orelse_var.dtype:
245 orelse_var.dtype.name))
266 for name, body_var, orelse_var in named_vars:
269 body_var, orelse_var, expand_composites=True)
276 functools.partial(_verify_single_cond_var, name), body_var, orelse_var)