MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / unstacked_input

Method unstacked_input

tensorflow/python/ops/parallel_for/pfor.py:756–769  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

754 return t
755
756 def unstacked_input(self, index):
757 t, is_stacked, _ = self.input(index)
758 if is_stacked:
759 op_type = self.op_type
760 op_def = getattr(self._op, "op_def", None)
761 if op_def is None:
762 input_name = "at index %d" % index
763 else:
764 input_name = "\"%s\"" % op_def.input_arg[index].name
765 raise ValueError("Input %s of op \"%s\" expected to be loop invariant"
766 ".\nError while converting op %s"
767 "with converted inputs\n%s" % (input_name, op_type,
768 self._op, self.inputs))
769 return t
770
771 @property
772 def op(self):

Callers 15

_inputs_with_flatteningFunction · 0.80
_convert_reshapeFunction · 0.80
_convert_broadcast_toFunction · 0.80
_convert_expanddimsFunction · 0.80
_convert_matrix_diag_v2Function · 0.80
_convert_one_hotFunction · 0.80
_convert_sliceFunction · 0.80

Calls 1

inputMethod · 0.95

Tested by

no test coverage detected