Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 116 for callFoo (0.25 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

     private:
      LogicalResult matchAndRewrite(TF::PartitionedCallOp call_op,
                                    PatternRewriter& rewriter) const override {
        StringRef function_name =
            mlir::cast<FlatSymbolRefAttr>(call_op.getFAttr()).getValue();
        if (!function_name.starts_with("composite_") ||
            !call_op->hasAttr(kQuantTraitAttrName)) {
          return failure();
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue5548_c.c

    static void clobber_stack() {
    	volatile char a[1024];
    	int i;
    	for(i = 0; i < sizeof a; i++)
    		a[i] = 0xff;
    }
    
    static int call_go() {
    	GoString s;
    	s.p = "test";
    	s.n = 4;
    	return issue5548FromC(s, 42);
    }
    
    int issue5548_in_c() {
    	clobber_stack();
    	return call_go();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 454 bytes
    - Viewed (0)
  3. 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
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/saved_model/internal/concrete_function.cc

                                          TF_Status* status) {
      tensorflow::ImmediateOpPtr call_op;
      absl::Span<tensorflow::AbstractTensorHandle* const> input_span(
          reinterpret_cast<tensorflow::AbstractTensorHandle**>(
              tensorflow::unwrap(inputs)),
          static_cast<size_t>(num_inputs));
      status->status = tensorflow::unwrap(func)->MakeCallOp(input_span, &call_op);
      if (!status->status.ok()) {
        return nullptr;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 27 06:55:27 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/internal/signature_def_function.cc

      tensorflow::ImmediateOpPtr call_op;
      absl::Span<tensorflow::AbstractTensorHandle* const> input_span(
          reinterpret_cast<tensorflow::AbstractTensorHandle**>(
              tensorflow::unwrap(inputs)),
          static_cast<size_t>(num_inputs));
      status->status = tensorflow::unwrap(func)->MakeCallOp(input_span, &call_op);
      if (!status->status.ok()) {
        return nullptr;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 17 23:03:48 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

    constexpr float kRequantCost = 2.0;
    
    // TODO(renjieliu): Ideally this should consider different kinds of SOCs as
    // well.
    
    // Get total bytes transferred.
    int64_t GetTransferredTensorBytes(func::CallOp from_graph,
                                      func::CallOp to_graph) {
      int64_t total_size_transferred = 0;
      for (auto input : to_graph.getOperands()) {
        Operation* input_op = input.getDefiningOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.h

                          const std::string& to_hardware_str,
                          func::CallOp from_graph, func::CallOp to_graph);
    
    // Get the cross quantization/dequantization boundary cost.
    float GetQuantDequantCost(InferenceType from_inference_type,
                              InferenceType to_inference_type,
                              func::CallOp from_graph, func::CallOp to_graph);
    
    }  // namespace tac
    }  // namespace TFL
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

        if (method.ok() && method->has_static_range_ptq()) return true;
      }
    
      TF::PartitionedCallOp call_op = dyn_cast_or_null<TF::PartitionedCallOp>(op);
      return call_op && call_op->hasAttrOfType<StringAttr>(kQuantTraitAttrName) &&
             call_op->getAttrOfType<StringAttr>(kQuantTraitAttrName).getValue() ==
                 llvm::StringRef(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

      bool IsCompositeFunction(TF::PartitionedCallOp call_op) const {
        if (!call_op->hasAttr(kQuantTraitAttrName)) {
          return false;
        }
    
        const auto f_attr = call_op.getFAttr().dyn_cast<FlatSymbolRefAttr>();
        if (!f_attr || !f_attr.getValue().starts_with("composite_")) {
          return false;
        }
    
        bool has_quantized_types = false;
        for (Value input : call_op.getArgs()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

      return method.has_weight_only_ptq();
    }
    
    bool IsWeightOnlyQuantizableOp(const Operation& op) {
      if (auto call_op = dyn_cast<TF::XlaCallModuleOp>(op)) {
        StringRef entry_function_name = GetEntryFunctionName(call_op);
        absl::StatusOr<Method> quantization_method = GetQuantizationMethod(call_op);
        return ContainsConvOrDot(entry_function_name) && quantization_method.ok() &&
               quantization_method->has_weight_only_ptq();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top