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

Method stacked_input

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

Source from the content-addressed store, hash-verified

739 return self._inputs[index]
740
741 def stacked_input(self, index):
742 t, is_stacked, _ = self.input(index)
743 if not is_stacked:
744 op_type = self.op_type
745 op_def = getattr(self._op, "op_def", None)
746 if op_def is None:
747 input_name = "at index %d" % index
748 else:
749 input_name = "\"%s\"" % op_def.input_arg[index].name
750 raise ValueError("Input %s of op \"%s\" expected to be not loop invariant"
751 ".\nError while converting op %s"
752 "with converted inputs\n%s" % (input_name, op_type,
753 self._op, self.inputs))
754 return t
755
756 def unstacked_input(self, index):
757 t, is_stacked, _ = self.input(index)

Callers 15

_inputs_with_flatteningFunction · 0.80
_convert_softmaxFunction · 0.80
_convert_reshapeFunction · 0.80
_convert_broadcast_toFunction · 0.80
_convert_expanddimsFunction · 0.80
_convert_searchsortedFunction · 0.80
_convert_matrix_set_diagFunction · 0.80
_convert_matrix_diag_v2Function · 0.80

Calls 1

inputMethod · 0.95

Tested by

no test coverage detected