Home
last modified time | relevance | path

Searched refs:is_nested (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtensor_list_ops.cc298 bool is_nested; in Compile() local
299 OP_REQUIRES_OK(ctx, IsNestedTensorList(ctx->Input(0), &is_nested)); in Compile()
300 OP_REQUIRES(ctx, !is_nested, in Compile()
354 bool is_nested; in Compile() local
355 OP_REQUIRES_OK(ctx, IsNestedTensorList(ctx->Input(0), &is_nested)); in Compile()
356 OP_REQUIRES(ctx, !is_nested, in Compile()
392 bool is_nested; in Compile() local
393 OP_REQUIRES_OK(ctx, IsNestedTensorList(ctx->Input(0), &is_nested)); in Compile()
394 OP_REQUIRES(ctx, !is_nested, in Compile()
443 bool is_nested; in Compile() local
[all …]
Dtensor_list_utils.cc470 bool is_nested; in ExecuteTensorListSetItem() local
471 TF_RETURN_IF_ERROR(IsNestedTensorList(list, &is_nested)); in ExecuteTensorListSetItem()
472 if (is_nested) { in ExecuteTensorListSetItem()
506 bool is_nested; in ExecuteTensorListGetItem() local
507 TF_RETURN_IF_ERROR(IsNestedTensorList(list, &is_nested)); in ExecuteTensorListGetItem()
508 if (is_nested) { in ExecuteTensorListGetItem()
/external/python/cpython2/Lib/test/
Dtest_symtable.py75 self.assertFalse(self.top.is_nested())
76 self.assertFalse(self.Mine.is_nested())
77 self.assertFalse(self.spam.is_nested())
78 self.assertTrue(self.internal.is_nested())
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dhlo_to_ir_bindings.h40 bool is_nested) in HloToIrBindings() argument
42 is_nested_(is_nested), in HloToIrBindings()
Dir_emitter.h117 IrEmitterContext* ir_emitter_context, bool is_nested);
Dir_emitter.cc80 IrEmitterContext* ir_emitter_context, bool is_nested) in IrEmitter() argument
86 is_nested), in IrEmitter()
/external/tensorflow/tensorflow/python/keras/engine/
Dcompile_utils.py67 if not nest.is_nested(struct) and nest.is_nested(outputs):
278 return not nest.is_nested(obj)
503 if not nest.is_nested(obj):
507 not any(nest.is_nested(o) for o in obj))
597 single_output = not nest.is_nested(y_pred)
600 not any(nest.is_nested(y_p) for y_p in y_pred))
Dfunctional.py144 if not nest.is_nested(self._nested_inputs):
147 not any(nest.is_nested(t) for t in self._nested_inputs)):
150 not any(nest.is_nested(t) for t in self._nested_inputs.values())):
581 if not nest.is_nested(ref_inputs):
1380 if not nest.is_nested(model_inputs):
1396 if not nest.is_nested(model_outputs):
Dnode.py218 if (not nest.is_nested(data) and
/external/python/cpython3/Lib/test/
Dtest_symtable.py76 self.assertFalse(self.top.is_nested())
77 self.assertFalse(self.Mine.is_nested())
78 self.assertFalse(self.spam.is_nested())
79 self.assertTrue(self.internal.is_nested())
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_factory_ops.py290 is_nested = isinstance(item, (list, tuple)) or np.ndim(item) != 0
291 if is_nested != bool(shape):
293 if is_nested:
/external/tensorflow/tensorflow/python/util/
Dnest_test.py291 self.assertFalse(nest.is_nested("1234"))
292 self.assertTrue(nest.is_nested([1, 3, [4, 5]]))
293 self.assertTrue(nest.is_nested(((7, 8), (5, 6))))
294 self.assertTrue(nest.is_nested([]))
295 self.assertTrue(nest.is_nested({"a": 1, "b": 2}))
296 self.assertTrue(nest.is_nested({"a": 1, "b": 2}.keys()))
297 self.assertTrue(nest.is_nested({"a": 1, "b": 2}.values()))
298 self.assertTrue(nest.is_nested({"a": 1, "b": 2}.items()))
299 self.assertFalse(nest.is_nested(set([1, 2])))
301 self.assertFalse(nest.is_nested(ones))
[all …]
/external/libchrome/base/
Drun_loop.cc277 const bool is_nested = active_run_loops_.size() > 1; in BeforeRun() local
279 if (is_nested) { in BeforeRun()
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.nest.pbtxt12 name: "is_nested"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.nest.pbtxt12 name: "is_nested"
/external/tensorflow/tensorflow/python/keras/layers/
Drecurrent.py143 states = states if nest.is_nested(states) else [states]
461 return state if nest.is_nested(self.cell.state_size) else [state]
572 if not nest.is_nested(input_shape):
645 if nest.is_nested(inputs):
660 if not nest.is_nested(init_state):
756 if nest.is_nested(inputs):
795 if not nest.is_nested(new_states):
803 if not nest.is_nested(new_states):
949 if not nest.is_nested(self.states):
1375 prev_output = states[0] if nest.is_nested(states) else states
[all …]
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_utils.py127 if not nest.is_nested(nested):
237 return not nest.is_nested(nested)
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.h103 bool is_nested) const;
Dpython_generator.cc819 bool is_nested) const { in PrintMessage()
821 if (is_nested) { in PrintMessage()
/external/python/cpython2/Lib/
Dsymtable.py80 def is_nested(self): member in SymbolTable
/external/python/cpython3/Lib/
Dsymtable.py79 def is_nested(self): member in SymbolTable
/external/tensorflow/tensorflow/python/keras/layers/legacy_rnn/
Drnn_cell_impl.py1254 if not nest.is_nested(cells):
1271 if any(nest.is_nested(c.state_size) for c in self._cells):
1328 if not nest.is_nested(state):
/external/python/cpython3/Doc/library/
Dsymtable.rst61 .. method:: is_nested()
/external/python/cpython2/Doc/library/
Dsymtable.rst61 .. method:: is_nested()
/external/tensorflow/tensorflow/python/ops/linalg/
Dlinear_operator_util.py527 if not any(nest.is_nested(x) for x in arg):

12