Home
last modified time | relevance | path

Searched refs:new_root (Results 1 – 25 of 49) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/
Droot_instruction_sinker.cc27 HloInstruction* new_root = TupleUtil::Duplicate(root); in SinkTupleRoot() local
31 for (HloInstruction* operand : new_root->operands()) { in SinkTupleRoot()
34 sequence.push_back(new_root); in SinkTupleRoot()
35 computation->set_root_instruction(new_root); in SinkTupleRoot()
42 HloInstruction* new_root = computation->AddInstruction( in SinkNontupleRoot() local
46 sequence.push_back(new_root); in SinkNontupleRoot()
47 computation->set_root_instruction(new_root); in SinkNontupleRoot()
Dcall_inliner.cc78 TF_ASSIGN_OR_RETURN(HloInstruction * new_root, Resolve(root)); in FinishVisit()
80 << " with new root " << new_root->ToString(); in FinishVisit()
81 return outer_->ReplaceInstruction(call_, new_root); in FinishVisit()
Dhlo_schedule_test.cc150 HloInstruction* new_root = entry->AddInstruction( in TEST_F() local
153 entry->set_root_instruction(new_root); in TEST_F()
193 HloInstruction* new_root = entry->AddInstruction(HloInstruction::CreateUnary( in TEST_F() local
195 entry->set_root_instruction(new_root); in TEST_F()
Dwhile_loop_all_reduce_code_motion_test.cc281 HloInstruction* new_root = module->entry_computation()->root_instruction(); in TEST_F() local
282 ASSERT_THAT(new_root, op::Multiply()); in TEST_F()
283 ASSERT_THAT(new_root->operand(0), op::GetTupleElement()); in TEST_F()
284 ASSERT_THAT(new_root->operand(0)->operand(0), op::Tuple()); in TEST_F()
285 EXPECT_THAT(new_root->operand(0)->operand(0)->operand(3), op::Add()); in TEST_F()
Dconditional_code_motion.cc622 HloInstruction* new_root = in MoveInstructionOut() local
624 *conditional->mutable_shape() = new_root->shape(); in MoveInstructionOut()
705 HloInstruction* new_root = in MoveInstructionIn() local
707 VLOG(2) << "setting new root: " << new_root->ToString() << "\n"; in MoveInstructionIn()
708 computation->set_root_instruction(new_root, in MoveInstructionIn()
752 auto new_root = computation->root_instruction(); in MoveInstructionIn() local
753 new_root->AppendOperand(new_op); in MoveInstructionIn()
754 *new_root->mutable_shape()->add_tuple_shapes() = new_op->shape(); in MoveInstructionIn()
756 << new_root->ToString() << "\n"; in MoveInstructionIn()
775 HloInstruction* new_root = in MoveInstructionIn() local
[all …]
Dstable_sort_expander.cc190 HloInstruction* new_root = in ExpandInstruction() local
194 comparator->set_root_instruction(new_root); in ExpandInstruction()
/external/tensorflow/tensorflow/python/training/tracking/
Dutil_with_v1_optimizers_test.py66 new_root = trackable_utils.Checkpoint()
69 slot_status = new_root.restore(slots_path)
70 no_slot_status = new_root.restore(no_slots_path)
73 new_root.var = trackable_utils.add_variable(
74 new_root, name="var", shape=[])
77 self.assertEqual(12., self.evaluate(new_root.var))
78 new_root.optimizer = adam.AdamOptimizer(0.1)
82 self.assertEqual(12., self.evaluate(new_root.var))
87 new_root.optimizer.get_slot(name="m", var=new_root.var)))
89 self.assertIs(new_root.optimizer.get_slot(name="m", var=new_root.var),
[all …]
/external/antlr/runtime/Ruby/lib/antlr3/tree/
Ddebug.rb84 def become_root( new_root, old_root ) argument
85 case new_root
87 n = create_with_payload( new_root )
90 n = super( new_root, old_root )
92 @debug_listener.become_root( new_root, old_root )
/external/antlr/runtime/Ruby/lib/antlr3/
Dtree.rb840 def become_root( new_root, old_root ) argument
841 new_root = create( new_root ) if new_root.is_a?( Token )
842 old_root or return( new_root )
844 new_root = create_with_payload( new_root ) unless CommonTree === new_root
845 if new_root.flat_list?
846 count = new_root.child_count
848 new_root = new_root.child( 0 )
854 new_root.add_child( old_root )
855 return new_root
/external/antlr/runtime/Ruby/test/unit/
Dtest-trees.rb569 new_root = new_node( new_token 5 )
576 @adaptor.become_root(new_root, old_root)
577 new_root.sanity_check
581 new_root = new_node( new_token 5 )
587 @adaptor.become_root(new_root, old_root)
588 new_root.sanity_check
592 new_root = new_node nil
593 new_root.add_child( new_node( new_token 5 ) )
600 @adaptor.become_root(new_root, old_root)
601 new_root.sanity_check
[all …]
/external/mesa3d/src/util/
Dsparse_array.c143 uintptr_t new_root = _util_sparse_array_node_alloc(arr, root_level); in util_sparse_array_get() local
145 NULL_NODE, new_root); in util_sparse_array_get()
157 uintptr_t new_root = _util_sparse_array_node_alloc(arr, root_level + 1); in util_sparse_array_get() local
159 uintptr_t *new_root_children = _util_sparse_array_node_data(new_root); in util_sparse_array_get()
168 root = _util_sparse_array_set_or_free_node(&arr->root, root, new_root); in util_sparse_array_get()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dparallel_task_assignment.cc236 auto* new_root = call->to_apply()->root_instruction(); in AssignParallelTasksHelper() local
237 new_root->set_outer_dimension_partitions(dim_partition_counts); in AssignParallelTasksHelper()
240 << " to instruction: " << new_root->name() in AssignParallelTasksHelper()
241 << " parent: " << new_root->parent()->name(); in AssignParallelTasksHelper()
/external/python/cpython2/Lib/distutils/
Dutil.py138 def change_root (new_root, pathname): argument
146 return os.path.join(new_root, pathname)
148 return os.path.join(new_root, pathname[1:])
154 return os.path.join(new_root, path)
160 return os.path.join(new_root, path)
/external/tensorflow/tensorflow/python/keras/tests/
Dtracking_util_test.py491 new_root = trackable_utils.Checkpoint()
494 slot_status = new_root.restore(slots_path)
495 no_slot_status = new_root.restore(no_slots_path)
498 new_root.var = trackable_utils.add_variable(
499 new_root, name="var", shape=[])
502 self.assertEqual(12., self.evaluate(new_root.var))
503 new_root.optimizer = adam.Adam(0.1)
508 self.assertEqual(12., self.evaluate(new_root.var))
513 new_root.optimizer.get_slot(slot_name="m", var=new_root.var)))
517 new_root.optimizer.get_slot(slot_name="m", var=new_root.var)
[all …]
/external/antlr/runtime/Ruby/lib/antlr3/debug/
Dtrace-event-listener.rb76 def become_root( new_root, old_root ) argument
77 record '(%s): old_root_id=%s new_root_id=%s', __method__, @adaptor.unique_id( new_root ),
Devent-hub.rb39 def become_root( new_root, old_root ) argument
41 listener.become_root( new_root, old_root )
Dsocket.rb215 def become_root( new_root, old_root ) argument
216 transmit "%s\t%i\t%i", :become_root, adaptor.unique_id( new_root ),
/external/ltp/testcases/kernel/security/tomoyo/
Dinclude.h74 static inline int pivot_root(const char *new_root, const char *put_old) in pivot_root() argument
76 return syscall(__NR_pivot_root, new_root, put_old); in pivot_root()
79 static inline int pivot_root(const char *new_root, const char *put_old) in pivot_root() argument
/external/python/cpython3/Lib/distutils/
Dutil.py137 def change_root (new_root, pathname): argument
145 return os.path.join(new_root, pathname)
147 return os.path.join(new_root, pathname[1:])
153 return os.path.join(new_root, path)
/external/chromium-trace/catapult/devil/devil/android/tools/
Dwebview_app.py123 def _RebasePath(new_root, old_root): argument
125 return os.path.join(new_root, os.path.relpath(old_root, '/'))
/external/python/cpython3/Python/
Dhamt.c2311 PyHamtNode *new_root; in _PyHamt_Assoc() local
2319 new_root = hamt_node_assoc( in _PyHamt_Assoc()
2322 if (new_root == NULL) { in _PyHamt_Assoc()
2326 if (new_root == o->h_root) { in _PyHamt_Assoc()
2327 Py_DECREF(new_root); in _PyHamt_Assoc()
2334 Py_DECREF(new_root); in _PyHamt_Assoc()
2338 new_o->h_root = new_root; /* borrow */ in _PyHamt_Assoc()
2352 PyHamtNode *new_root = NULL; in _PyHamt_Without() local
2357 &new_root); in _PyHamt_Without()
2368 assert(new_root != NULL); in _PyHamt_Without()
[all …]
/external/vboot_reference/scripts/image_signing/
Dmake_dev_ssd.sh63 local new_root="PARTUUID=%U/PARTNROFF=1"
65 s| root=/dev/dm-[0-9] | root='"$new_root"' |
/external/python/setuptools/
Dpavement.py18 def rewrite_packaging(pkg_files, new_root): argument
/external/freetype/src/psaux/
Dcffdecode.c1759 FT_Fixed new_root; in cff_decoder_parse_charstrings() local
1764 new_root = ( root + FT_DivFix( args[0], root ) + 1 ) >> 1; in cff_decoder_parse_charstrings()
1765 if ( new_root == root ) in cff_decoder_parse_charstrings()
1767 root = new_root; in cff_decoder_parse_charstrings()
1769 args[0] = new_root; in cff_decoder_parse_charstrings()
/external/tensorflow/tensorflow/core/common_runtime/
Dcolocation_graph.h70 Member** new_root, Member** old_root, bool dry_run);

12