Searched refs:clazz_object (Results 1 – 2 of 2) sorted by relevance
/external/tensorflow/tensorflow/python/ops/ |
D | math_ops.py | 848 def _OverrideBinaryOperatorHelper(func, op_name, clazz_object=ops.Tensor): argument 903 if clazz_object is ops.Tensor: 904 clazz_object._override_operator("__%s__" % op_name, binary_op_wrapper) 906 clazz_object._override_operator("__r%s__" % op_name, r_binary_op_wrapper) 909 clazz_object._override_operator("__%s__" % op_name,
|
/external/tensorflow/tensorflow/python/framework/ |
D | ops.py | 119 def _override_helper(clazz_object, operator, func): argument 131 existing = getattr(clazz_object, operator, None) 137 (operator, clazz_object)) 140 setattr(clazz_object, operator, func)
|