Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 232 for eraseOp (0.12 sec)

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

            !cond.getArgument(i).use_empty()) {
          explicitly_consumed_ids.push_back(i);
        }
      }
      // Empty consumed_element_ids implies none of results is used.
      if (explicitly_consumed_ids.empty()) {
        while_op.erase();
        return true;
      }
      // If every element is consumed, one can't reduce any operand.
      if (explicitly_consumed_ids.size() == n) {
        return false;
      }
    
      // Build the dependency graph.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramParser.kt

                checkForSingleBlocksOf(topLevelBlockIds, topLevelBlocks)
    
                checkForTopLevelBlockOrder(topLevelBlocks)
    
                val sourceWithoutComments =
                    source.map { it.erase(comments) }
    
                val buildscriptFragment =
                    topLevelBlocks
                        .singleSectionOf(TopLevelBlockId.buildscriptIdFor(target))
                        ?.let { sourceWithoutComments.fragment(it) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc

        StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr);
        if (should_fold_op_func(op.getOperand(), op_device)) {
          op.replaceAllUsesWith(op.getOperand());
          op.erase();
        }
        return WalkResult::advance();
      });
    
      func_op.walk([&should_fold_op_func](TF::IdentityNOp op) {
        StringAttr op_device = op->getAttrOfType<StringAttr>(kDeviceAttr);
        bool should_fold = llvm::all_of(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/tests/merge_save_function_ops_to_main.mlir

        tf_executor.graph {
          tf_executor.fetch
        }
        return
      }
    }
    // Save function should be erased.
    // CHECK-NOT: @tf_quant__save
    
    // Test that the contents of @tf_quant__save are copied to @main.
    // CHECK: func.func @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.h

                                             StringPiece func_name);
    
      // Runs the decompose passes on the user_module.
      Status DecomposeGraph(mlir::ModuleOp user_module);
    
      // Erases the tfr_module created.
      void Destroy();
    
     private:
      mlir::ModuleOp tfr_module_;
      mlir::PassManager pm_;
    
      GraphExportConfig export_confs_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 11:12:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        return std::get<TF::MlirLocalVarOp>(op).getResource();
      }
    }
    
    void LocalVarOp_erase(LocalVarOp &op) {
      if (auto var_handle_op = std::get_if<TF::VarHandleOp>(&op)) {
        var_handle_op->erase();
      } else {
        std::get<TF::MlirLocalVarOp>(op).erase();
      }
    }
    
    std::optional<LocalVarOp> IsLocalVarOp(Operation &op) {
      if (TF::MlirLocalVarOp mlir_local_var_op =
              llvm::dyn_cast<TF::MlirLocalVarOp>(&op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

        block.eraseArgument(argument_index_to_remove);
        argument_types.erase(argument_types.begin() + argument_index_to_remove);
      }
    
      // Rewrite return if there are variable writes.
      const int return_operands_size = return_operands.size();
      if (return_operands_size > num_results_before) {
        builder.create<func::ReturnOp>(return_op.getLoc(), return_operands);
        return_op.erase();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

        }
    
        // Clean up unused asset ops.
        for (auto asset : llvm::make_early_inc_range(module.getOps<AssetOp>())) {
          if (symbol_table.symbolKnownUseEmpty(asset, module)) {
            asset.erase();
          }
        }
      }
    
     private:
      // Replaces bounded-input arguments of the function with constant ops in the
      // body and removes the arguments.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

            if (cluster_name.has_value() &&
                cluster_name.value() != target_cluster_name) {
              tpu_ops.erase(iter);
              return true;
            }
            if (!cluster_name.has_value() &&
                !tpu_ops.count(wrapper.getOperation())) {
              tpu_ops.erase(iter);
              return true;
            }
          }
        }
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

        if (failed(UpdateReadUses(read_var, partitioned_input, partitioned_read,
                                  partitioned_reads, is_packed)))
          return failure();
        read_var->erase();
        if (partitioned_input->use_empty()) partitioned_input->erase();
      }
      return mlir::TF::RemoveSingletonParallelExecuteOp(parallel_execute, &builder);
    }
    
    void TPUResourceReadsWritesPartitioningPass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top