Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for emitRemark (0.27 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

        expressions.push_back(expr);
    
        if (!tensorflow::DataTypeCanUseMemcpy(expr.dtype())) {
          return op_->emitRemark()
                 << "skipping legalization due to unsupported type "
                 << operand.getType();
        }
    
        auto shape_or = expr.GetShape();
        if (!shape_or.ok()) {
          return op_->emitRemark()
                 << "failed to get shape for expression. " << expr.HumanString();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/test_side_effect_analysis.cc

            op->emitRemark("Predecessors: ")
                << "{" << join_ids(analysis.DirectControlPredecessors(op)) << "}";
          }
          if (!analysis.DirectControlSuccessors(op).empty()) {
            op->emitRemark("Successors: ")
                << "{" << join_ids(analysis.DirectControlSuccessors(op)) << "}";
          }
          if (llvm::isa<func::ReturnOp>(op)) {
            op->emitRemark("Sinks: ")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc

      if (!var_handle_op) {
        assign_var_op->emitRemark(
            "Operand idx 0 is not a tf.VarHandleOp. The initializing tensor is not "
            "saved to checkpoint.");
        return "";
      }
    
      auto assigned_value_operand = assign_var_op.getOperand(1);
      auto const_op =
          llvm::dyn_cast<mlir::TF::ConstOp>(assigned_value_operand.getDefiningOp());
      if (!const_op) {
        assign_var_op->emitRemark(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:36:55 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_filter.cc

                              int count,
                              const SmallVector<Operation*>& filtered_ops) {
      emitRemark(module_loc) << llvm::formatv("Tac filter ({0}): {1}", count,
                                              TacFilterToString(tac_filter));
      if (filtered_ops.empty()) {
        emitRemark(module_loc) << llvm::formatv(
            "Tac filter ({0}) specified but not applied to any op", count);
        return;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/test_resource_alias_analysis.cc

              InFlightDiagnostic diag = op->emitRemark("Region #")
                                        << region.getRegionNumber() << ", Arg #"
                                        << region_arg.getArgNumber();
              print_aliases(diag, region_arg);
            }
          }
    
          for (auto result : TF::filter_resources(op->getResults())) {
            InFlightDiagnostic diag = op->emitRemark("Result #")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/analysis/test_tensor_array_side_effect_analysis.cc

      void runOnOperation() override {
        auto module = getOperation();
        TensorArraySideEffectAnalysis tensor_array_side_effect_analysis(module);
    
        for (auto func_op : module.getOps<mlir::func::FuncOp>()) {
          func_op.emitRemark() << "HasAtMostTensorArrayEffect: "
                               << tensor_array_side_effect_analysis
                                      .HasAtMostTensorArrayEffect(func_op);
        }
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 10 21:32:05 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/analysis/test_cost_analysis_pass.cc

      }
      void runOnOperation() override {
        const auto& cost_analysis = getAnalysis<CostAnalysis>();
    
        auto func_op = getOperation();
        for (auto& op : func_op.front()) {
          op.emitRemark() << "Cost: " << cost_analysis.GetCost(&op);
        }
      }
    };
    
    static mlir::PassRegistration<TestCostAnalysis> pass;
    
    }  // namespace tfrt_compiler
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 01 23:46:29 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/resource_analyzer_test_pass.cc

      module_op.getRegion().walk([&analyzer](Operation* op) {
        if (auto var_handle_op = dyn_cast<TF::VarHandleOp>(op)) {
          const ResourceKey resource_key = GetResourceKey(var_handle_op);
          op->emitRemark(llvm::formatv(
              "device: \"{0}\", container: \"{1}\", shared_name: \"{2}\", "
              "is_potentially_written: {3}",
              resource_key.device, resource_key.container, resource_key.shared_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 00:21:29 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

        int num_elements_threshold = quant_options_.min_num_elements_for_weights();
        int num_elements = cast<ShapedType>(op.getType()).getNumElements();
        if (num_elements < num_elements_threshold) {
          op->emitRemark("Quantization is skipped because the op has ")
              << num_elements << " elements which is fewer than the threshold("
              << num_elements_threshold << " elements).";
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc

          int current_num_elements =
              mlir::cast<ShapedType>(call_op.getOperand(idx).getType())
                  .getNumElements();
          if (current_num_elements < min_num_elements_for_weights_) {
            call_op.emitRemark("Quantization is skipped for ")
                << call_op->getName().getStringRef().str() << " because it has "
                << current_num_elements
                << " elements which is fewer than the threshold("
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top