Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cond_true (0.12 sec)

  1. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        // Constructs `then_branch`, which is executed when `if_cond` evaluates to
        // true.
        auto then_branch_op =
            rewriter.create<func::FuncOp>(loc, "cond_true", func_type);
        CreateCondTrueBranch(op, shape_dtype, result_type, then_branch_op,
                             &rewriter);
        then_branch_op.setVisibility(func::FuncOp::Visibility::Private);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

    void SetAllVarIsInitializedToTrue(Block* block) {
      auto builder = OpBuilder::atBlockBegin(block);
      TF::ConstOp const_true = nullptr;
      for (auto op :
           llvm::make_early_inc_range(block->getOps<TF::VarIsInitializedOp>())) {
        builder.setInsertionPoint(op);
        if (!const_true)
          const_true = builder.create<TF::ConstOp>(
              op.getLoc(),
              DenseIntElementsAttr::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/deadness_analysis_test.cc

    }
    
    TEST(DeadnessAnalysisTest, ConstantTrueSwitchCondition) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      Output constant_true = ops::Const(root.WithOpName("const_true"), true);
      Output value = ops::Placeholder(root.WithOpName("value"), DT_FLOAT);
      ops::Switch sw(root.WithOpName("switch"), value, constant_true);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top