Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 98 for getUses (0.11 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

        if (op.getNumOperands() != 0 || op.getNumResults() != 1 ||
            !HasSingleOpInBlock<YieldOp>(&op.GetBody()))
          return failure();
    
        for (auto &use : llvm::make_early_inc_range(op.getControl().getUses()))
          use.getOwner()->eraseOperand(use.getOperandNumber());
    
        rewriter.eraseOp(op);
    
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

              nullptr};
        }
        // Check the current operation has a consumer node.
        Operation* consumer_op =
            current->getResult(0).getUses().begin()->getOwner();
        if (!consumer_op) {
          return {
              rewriter.notifyMatchFailure(current, "op doesn't have consumer node"),
              nullptr};
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

        for (const auto& idx_result : llvm::enumerate(island.getOutputs())) {
          Value result = idx_result.value();
    
          bool has_external_use = false;
          for (OpOperand& use : llvm::make_early_inc_range(result.getUses())) {
            if (wrapped_ops.count(use.getOwner()))
              use.set(yield_op.getOperand(idx_result.index()));
            else
              has_external_use = true;
          }
          if (has_external_use) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

    llvm::SmallVector<Operation*> GetSuccessors(Operation* op) {
      llvm::SmallVector<Operation*> successors;
      for (auto result : op->getParentOp()->getOpResults()) {
        for (auto& use : result.getUses()) {
          auto succ = use.getOwner();
          successors.push_back(succ);
        }
      }
      return successors;
    }
    // Gets the predecessors of an op wrapped in tf_executor.island.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

          // with corresponding results of new parallel_execute op
          for (auto& use : llvm::make_early_inc_range(
                   old_parallel_execute->getResult(output_index).getUses())) {
            use.set(new_parallel_execute->getResult(output_index));
          }
          continue;
        }
    
        int tpu_cluster_output_index = output_index - num_results_pre_cluster;
        const auto& output_sharding =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

        llvm::SmallVector<Value, 4> next_values_to_visit;
        for (Value value_to_visit : values_to_visit) {
          if (!visited_values.insert(value_to_visit).second) continue;
    
          for (auto& use : value_to_visit.getUses()) {
            Operation* owner = use.getOwner();
            if (auto sharding = llvm::dyn_cast<mlir::TF::XlaShardingOp>(owner))
              return sharding.get_XlaSharding();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

            // Only `mlir::func::CallOp` is supported as this requires knowing how
            // to rewrite arguments and results to a function.
            if (!isa<mlir::func::CallOp>(use.getUser())) continue;
            auto caller_parent_func =
                use.getUser()->getParentOfType<func::FuncOp>();
            if (!caller_parent_func) continue;
    
            FuncToRewrite func_to_rewrite{/*original=*/caller_parent_func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  8. tests/associations_many2many_test.go

    	}
    
    	// Append
    	teams1 := []User{*GetUser("friend-append-1", Config{})}
    	teams2 := []User{}
    	teams3 := []*User{GetUser("friend-append-3-1", Config{}), GetUser("friend-append-3-2", Config{})}
    
    	DB.Model(&users).Association("Team").Append(&teams1, &teams2, &teams3)
    
    	AssertAssociationCount(t, users, "Team", 9, "After Append")
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Jun 10 13:05:19 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  9. tests/transaction_test.go

    		t.Fatalf("Should find saved record")
    	}
    }
    
    func TestNestedTransactionWithBlock(t *testing.T) {
    	var (
    		user  = *GetUser("transaction-nested", Config{})
    		user1 = *GetUser("transaction-nested-1", Config{})
    		user2 = *GetUser("transaction-nested-2", Config{})
    	)
    
    	if err := DB.Transaction(func(tx *gorm.DB) error {
    		tx.Create(&user)
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. tests/create_test.go

    		*GetUser("bulk_4", Config{Account: true, Pets: 3, Toys: 0, Company: false, Manager: true, Team: 0, Languages: 3, Friends: 0}),
    		*GetUser("bulk_5", Config{Account: false, Pets: 0, Toys: 3, Company: true, Manager: false, Team: 1, Languages: 3, Friends: 1}),
    		*GetUser("bulk_6", Config{Account: true, Pets: 4, Toys: 3, Company: false, Manager: true, Team: 1, Languages: 3, Friends: 0}),
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top