Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 139 for call_op (0.1 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_inline_tpu_island.cc

        if (!call_op.getF().getRootReference().getValue().starts_with(
                kNestedModule))
          return WalkResult::advance();
        // This is a call we need to inline!
        LLVM_DEBUG(llvm::dbgs()
                   << "Found call to inline: " << *call_op.getOperation() << "\n");
    
        auto call_interface = cast<CallOpInterface>(call_op.getOperation());
        auto called_func =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

        return GetInverseScalesConstantOp().getValue();
      }
    
      func::CallOp GetCallOp() { return call_op_; }
    
      FlatSymbolRefAttr GetFunction() { return call_op_.getCalleeAttr(); }
    
     private:
      explicit UniformQuantizeFunctionCallPattern(func::CallOp call_op)
          : call_op_(call_op) {}
    
      func::CallOp call_op_;
    };
    
    // Matches the following pattern that represents uniform dequantization.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc

          aggregated_cost_with_decisions;
    };
    
    // If the output is produced by a callop, will return the callop, otherwise,
    // will return nullptr.
    inline func::CallOp GetProducerCallOpOrNull(Value output) {
      Operation* output_op = output.getDefiningOp();
      if (output_op != nullptr && llvm::isa<func::CallOp>(output_op)) {
        return llvm::cast<func::CallOp>(output_op);
      }
      return nullptr;
    }
    
    class PickSubgraphsPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 19.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/passes/decompose.cc

      bool changed = false;
      auto walk_result = func.walk([&](CallOp call_op) {
        auto callee = table.lookup<TFRFuncOp>(call_op.getCallee());
        if (!callee || callee.isExternal()) return WalkResult::advance();
    
        // Record the boundary of the inlined operations. The inlined operation will
        // be inserted between these two operations.
        Operation* inlined_point = call_op.getOperation();
        Operation* after_inlined_point =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

      ASSERT_TRUE(module_op);
    
      func::FuncOp main_fn = FindMainFuncOp(*module_op);
      ASSERT_THAT(main_fn, NotNull());
    
      auto call_op = *main_fn.getOps<TF::XlaCallModuleOp>().begin();
      EXPECT_TRUE(HasWeightOnlyPtqMethod(call_op));
    }
    
    TEST_F(LiftAsFunctionCallTest, HasWeightOnlyPtqMethodDifferentMethod) {
      const absl::string_view kModuleDotNoQuantization = R"mlir(
        module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top