Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,245 for const1 (0.11 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

                   PatternRewriter& rewriter) const override {
        auto transpose_op = cast<TransposeOp>(op.getOperand(0).getDefiningOp());
    
        const auto result_type = mlir::cast<TensorType>(op.getResult(0).getType());
        const SmallVector<int64_t> new_result_shape =
            Permute<int64_t>(result_type.getShape(), kNchwToNhwcPermutation);
    
        const TensorType new_result_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_cluster_util_test.cc

      EXPECT_FALSE(ok);
    }
    
    const char* kCPU0 = "/job:localhost/replica:0/task:0/device:CPU:0";
    const char* kGPU0 = "/job:localhost/replica:0/task:0/device:GPU:0";
    const char* kGPU1 = "/job:localhost/replica:0/task:0/device:GPU:1";
    
    TEST(IsSingleGpuGraph, ReturnsTrue) {
      Scope root = Scope::NewRootScope().WithAssignedDevice(kGPU0).ExitOnError();
    
      Output a = ops::Const(root.WithOpName("a"), Input::Initializer(0.0));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.cc

      return Status();
    }
    
    Status InitializeAllResources(const RevivedObjects& revived) {
      for (const auto& node_and_resource : revived.restored_resources) {
        const RestoredResource& resource = node_and_resource.second;
        TF_RETURN_IF_ERROR(resource.Initialize());
      }
      return Status();
    }
    
    }  // namespace
    
    Status TFSavedModelAPI::GetFunction(const std::string& function_path,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top