Searched refs:shape_tuple (Results 1 – 5 of 5) sorted by relevance
147 def CreateShapeFromDtypeAndTuple(dtype, shape_tuple): # pylint: disable=invalid-name argument158 return Shape(element_type, shape_tuple)
34 def _shape(self, shape_tuple): argument35 return constant(shape_tuple, dtypes.int32)
650 shape_tuple = grad._shape_tuple() # pylint: disable=protected-access652 shape_tuple = grad.values._shape_tuple() # pylint: disable=protected-access655 if shape_tuple is None or None in shape_tuple:657 return functools.reduce(operator.mul, shape_tuple, 1)
2135 tensorflow::Safe_PyObjectPtr shape_tuple( local2142 if (ListContainsNone(shape_tuple.get()) || dtype == tensorflow::DT_VARIANT) {2146 auto l = MakeIntList(shape_tuple.get());4039 tensorflow::Safe_PyObjectPtr shape_tuple( local4042 if (shape_tuple == nullptr) {4047 if (shape_tuple.get() == Py_None) {4055 shape_tuple.get(), "shape_tuple didn't return a sequence"));
1477 shape_tuple = x._shape_tuple()1480 tensor_shape.TensorShape(shape_tuple)