Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 106 for getUsers (0.28 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc

          // fold_all_constants_flag.
          if (!fold_all_constants_flag_) {
            if (!IsConstOrQConstInt(op)) return;
          }
    
          for (auto consumer : op->getResult(0).getUsers()) {
            auto consumer_call = llvm::dyn_cast_or_null<func::CallOp>(consumer);
    
            if (!consumer_call) continue;
    
            auto function_name = consumer_call.getCallee();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

        if (IsConstantOrNone(op)) {
          continue;
        }
        for (Value output : op->getResults()) {
          bool output_consumed_outside_subgraph = false;
          for (Operation* consumer : output.getUsers()) {
            if (llvm::all_of(partition_ops, [&](Operation* op) {
                  return !op->isAncestor(consumer);
                })) {
              output_consumed_outside_subgraph = true;
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

                                    PatternRewriter &rewriter) const override {
        // Only rewrite if the Broadcast has only one consumer.
        if (!op.getOutput().hasOneUse()) return failure();
    
        Operation *user = *op.getOutput().getUsers().begin();
    
        auto reshape_op = llvm::dyn_cast_or_null<ReshapeOp>(user);
        if (!reshape_op) return failure();
    
        auto reshape_type =
            mlir::cast<ShapedType>(reshape_op.getOutput().getType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc

    bool CanMove(Operation* op) {
      auto launch_op = llvm::dyn_cast<tf_device::LaunchOp>(op->getParentOp());
      if (!launch_op) return false;
      for (Value result : op->getResults()) {
        for (Operation* user : result.getUsers()) {
          if (user != launch_op.GetBody().getTerminator()) return false;
        }
      }
      return true;
    }
    
    // Get the new launch op results. This is the results if the copy op is removed
    // from the old launch op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

        return;
      }
      if (!tensor_type.getElementType().isF32()) return;
    
      // If the result is consumed by a quantize op, it has been quantized.
      if (value.hasOneUse() &&
          llvm::isa<TFL::QuantizeOp>(*value.getUsers().begin()))
        return;
    
      // Add this result to the list to apply the default value.
      values->push_back(value);
    }
    
    void DefaultQuantParamsPass::QuantizeValue(OpBuilder builder, Value value,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

        if (!convert_op.getResult().hasOneUse()) {
          return false;
        }
        auto other_convert_op = dyn_cast_or_null<OtherConvertOp>(
            *convert_op.getResult().getUsers().begin());
        return other_convert_op &&
               converter.isLegal(other_convert_op.getResult().getType());
      }
      return true;
    }
    
    class BFloat16TypeConversionTarget : public ConversionTarget {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/cluster_util.cc

      llvm::append_range(worklist, cluster->getResults());
    
      while (!worklist.empty()) {
        mlir::Value value = worklist.back();
        worklist.pop_back();
    
        for (mlir::Operation* const user : value.getUsers()) {
          mlir::Operation* const op = cluster_block->findAncestorOpInBlock(*user);
          if (op == nullptr || !op->isBeforeInBlock(cluster)) {
            continue;
          }
    
          if (ops_to_reorder.insert(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 28 00:32:55 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. testing/architecture-test/src/test/java/org/gradle/architecture/test/KotlinCompatibilityTest.java

                        return new Accessors(owningClass, propertyName, getters, superclassSetters);
                    }
                }
                return null;
            }
    
            private Accessors(JavaClass owningClass, String propertyName, Set<JavaMethod> getters, Set<JavaMethod> setters) {
                this.getters = getters;
                this.setters = setters;
                this.owningClass = owningClass;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. tests/gorm_test.go

    		}
    
    		var gotUsers []user
    		results = DB.Where("id in (?, ?)", u1.ID, u2.ID).Order("id asc").Select("id, name").Find(&gotUsers)
    		if results.Error != nil {
    			t.Fatalf("errors happened on first: %v", results.Error)
    		} else if results.RowsAffected != 2 {
    			t.Fatalf("rows affected expects: %v, got %v", 2, results.RowsAffected)
    		} else if gotUsers[0].ID != u1.ID {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jun 01 07:22:21 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. tests/associations_belongs_to_test.go

    	DB.Model(&users).Association("Manager").Append(
    		GetUser("manager-slice-belongs-to-1", Config{}),
    		GetUser("manager-slice-belongs-to-2", Config{}),
    		GetUser("manager-slice-belongs-to-3", Config{}),
    	)
    	AssertAssociationCount(t, users, "Manager", 3, "After Append")
    
    	if err := DB.Model(&users).Association("Manager").Append(
    		GetUser("manager-slice-belongs-to-test-1", Config{}),
    	).Error; err == nil {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top