Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 279 for incrementBy (0.17 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/input_lowering_metrics_pass.cc

          dynamism_op_counter->GetCell(op->getName().getStringRef().str())
              ->IncrementBy(1);
        }
    
        return WalkResult::advance();
      });
    
      if (has_dynamic_op) {
        dynamism_function_counter->GetCell(kDynamicFunctionName)->IncrementBy(1);
      } else {
        dynamism_function_counter->GetCell(kNotDynamicFunctionName)->IncrementBy(1);
      }
    }
    }  // namespace
    
    std::unique_ptr<mlir::OperationPass<mlir::func::FuncOp>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 08:55:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.cc

    }
    
    tensorflow::Status RecordStatusIfError(absl::Status status) {
      if (status.ok()) {
        return absl::OkStatus();
      }
    
      tf_dialect_to_executor_dialect_status->GetCell(kExportFailed)->IncrementBy(1);
      VLOG(1) << "Failed to export from TF Dialect to TF Executor Dialect. "
              << status;
    
      constexpr char bridge_subcomponent[] =
          "TFXLA_TF_FUNCTIONAL_TO_EXECUTOR_EXPORT_v2";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

            mlir_function_pass_fallback_count->GetCell(kFailure)->IncrementBy(1);
          } else if (pass_state == MlirOptimizationPassState::Enabled) {
            return pass_status;
          }
        } else {
          if (pass_state == MlirOptimizationPassState::FallbackEnabled) {
            mlir_function_pass_fallback_count->GetCell(kSuccess)->IncrementBy(1);
          }
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

      auto op_name = op->getName();
      auto name_string = op_name.getStringRef().str();
      auto op_legality = OperationLegalityString(op, target);
    
      mlir_failed_legalization_count->GetCell(name_string, op_legality)
          ->IncrementBy(1);
    }
    
    mlir::LogicalResult ApplyPatterns(Operation *op, RewritePatternSet &patterns,
                                      bool legalize_chlo) {
      ConversionTarget target =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

          compilation_result);
      if (comp_status.ok()) {
        phase2_bridge_compilation_status->GetCell(kOldBridgeNoMlirSuccess)
            ->IncrementBy(1);
      } else {
        phase2_bridge_compilation_status->GetCell(kOldBridgeNoMlirFailure)
            ->IncrementBy(1);
      }
    
      return comp_status;
    }
    
    absl::Status CompileMLIRTFFunction(
        tpu::MlirToHloArgs mlir_computation,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

      void runOnOperation() override;
    };
    
    static void IncrementCounterFor(tensorflow::monitoring::Counter<1>* counter,
                                    Operation* op) {
      counter->GetCell(op->getName().getStringRef().str())->IncrementBy(1);
    }
    
    bool HasBounds(RankedTensorType type) {
      auto encoding = mlir::dyn_cast_or_null<mlir::mhlo::TypeExtensionsAttr>(
          type.getEncoding());
      return (encoding && !encoding.getBounds().empty());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc

      }
    
      if (quant_specs_.post_training_quantization) {
        tflite_quantizer_usage_stats->GetCell("post_training")->IncrementBy(1);
        RemoveRedundantStats(func);
      } else {
        tflite_quantizer_usage_stats->GetCell("during_training")->IncrementBy(1);
        // Set the quantization parameters for the quantizable input nodes. If this
        // failed, return the function immediately. This is only required for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

        rewriter.replaceOp(op, rewriter.create(state)->getResults());
    
        // TODO: b/290366702 - Temporarily added metrics for debugging.
        mlir_tf_quant_op_count->GetCell(std::string(op->getName().getStringRef()))
            ->IncrementBy(1);
        return success();
      }
    };
    
    // This pattern adds qint <-> int Cast to all qint operands and results for UQ
    // ops.
    class TFUniformQuantizedOpsPattern : public ConversionPattern {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/passes/decompose.cc

                                    "The number of composite op expanded.", "name");
    }
    
    void IncreaseOpExpansionExecuteCounterByOne(const std::string& op_name) {
      tf_core_op_expansion_op_counter->GetCell(op_name)->IncrementBy(1);
    }
    
    }  // namespace tensorflow
    
    //===----------------------------------------------------------------------===//
    // The pass to decompose unregistered TF ops with the TFR compose function.
    //
    namespace mlir {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/kernels/xla_ops.cc

      VLOG(1) << "XlaLocalLaunchOpBase::Compute "
              << Canonicalize(function_.name(), AttrSlice(&function_.attr()));
      xla_launch_counter->GetCell(platform_info_.device_type().type_string())
          ->IncrementBy(1);
    
      std::vector<const Tensor*> inputs = InputsFromContext(ctx);
      std::vector<XlaCompiler::Argument> xla_compiler_args;
      const XlaCompiler::CompilationResult* compilation_result;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top