Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,170 for const1 (0.22 sec)

  1. tensorflow/cc/training/queue_runner.cc

    }
    
    Status QueueRunner::ExportCostGraph(CostGraphDef* cost_graph) const {
      if (!cg_mu_) {
        return Status(absl::StatusCode::kFailedPrecondition,
                      "This QueueRunner doesn't collect a cost graph.");
      }
      mutex_lock l(*cg_mu_);
      cost_graph->MergeFrom(*cost_graph_);
      return absl::OkStatus();
    }
    
    void QueueRunner::SetRunArgumentsAndCostGraph(const RunOptions& run_options) {
      cg_mu_.reset(new mutex());
      {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.cc

    // quantization API
    TfLiteStatus QuantizeWeights(
        flatbuffers::FlatBufferBuilder* builder, const tflite::Model* input_model,
        const tflite::TensorType& inference_type,
        const absl::flat_hash_set<std::string>& denylisted_ops,
        const CustomOpMap& custom_op_map, int64_t minimum_elements_for_weights,
        bool disable_per_channel, bool weight_only_quantization,
        bool legacy_float_scale) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model.h

    // the values with the TOCO quantizer.
    TfLiteStatus QuantizeModel(
        absl::string_view model_buffer, const tflite::TensorType &input_type,
        const tflite::TensorType &output_type,
        const tflite::TensorType &inference_type,
        const std::unordered_set<std::string> &operator_names,
        bool disable_per_channel, bool fully_quantize, std::string &output_buffer,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_to_string.cc

      void Element(size_t i, flatbuffers::ElementaryType /*type*/,
                   const flatbuffers::TypeTable* /*type_table*/,
                   const uint8_t* /*val*/) override {
        if (i) s += ", ";
      }
    };
    
    void ToString(const std::string& serialized_model) {
      IndentedToStringVisitor visitor(/*delimiter=*/"\n", /*indent=*/"  ");
      IterateFlatBuffer(reinterpret_cast<const uint8_t*>(serialized_model.c_str()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 15:52:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_average_min_max.cc

      average_min_max_statistics_.set_num_samples(0);
    }
    
    void CalibrationStatisticsCollectorAverageMinMax::Collect(
        const float min, const float max, absl::Span<const int64_t> histogram) {
      const float current_min_sum = average_min_max_statistics_.min_sum();
      const float current_max_sum = average_min_max_statistics_.max_sum();
      const int current_num_samples = average_min_max_statistics_.num_samples();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 05 03:57:26 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_compile_util.cc

    namespace tensorflow {
    namespace {
    constexpr const char* kPjRtDeviceCompilerResourceName = "pjrt_device_compiler";
    constexpr const char* kPjRtDeviceCompilationProfilerResourceName =
        "pjrt_device_compilation_profiler";
    }  // namespace
    
    absl::StatusOr<std::unique_ptr<Graph>> CreateSingleOpGraph(
        const NodeDef& node_def, absl::Span<const XlaArgument> args,
        absl::Span<const DataType> result_types) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

    // TODO(krzysd) Handle function calls
    StatusOr<Operation*> ConvertOp(
        const tflite::OperatorT& op, const std::vector<Value>& vals_map,
        const std::vector<mlir::TensorType>& intermediate_types,
        Value optional_arg_marker,
        const std::vector<std::unique_ptr<tflite::OperatorCodeT>>& op_codes,
        const std::vector<std::string>& func_names,
        const std::vector<std::unique_ptr<tflite::TensorT>>& tensors, Location loc,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc

    Attribute DefaultOrNullAttr(OpBuilder& builder, const Attribute& attr) {
      if (attr) return attr;
      return builder.getStringAttr(kNullAttributeValue);
    }
    
    // Checks whether the value of a constant equals the given float, regardless
    // of the tensor dimension.
    bool FloatValueEquals(const Attribute& attr, const double value) {
      const auto fp_attr = mlir::dyn_cast_or_null<DenseFPElementsAttr>(attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc

                            QuantizationUnit quant_op) const {
        auto [quantized_op, weight_idx] = quant_op;
        const bool is_narrow_range = true;
        const bool is_legacy_float = quant_specs_.legacy_float_scale;
        const bool is_signed = quant_specs_.IsSignedInferenceType();
        const int bit_width = quant_specs_.GetQuantizationTypeWidth();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          PatternRewriter& rewriter, CallOp call_op,
          const SmallVectorImpl<Type>& output_types,
          const SmallVectorImpl<Value>& inputs, const NamedAttrList& attr_list,
          const llvm::StringMap<Attribute>& derived_attrs) const;
    
      // Converts the attribute to the specific type.
      Attribute ProcessAttributeValue(Attribute attr, StringAttr attr_type) const;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top