Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for call_op (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc

    // than function name.
    std::unique_ptr<OpQuantSpec> GetTFOpQuantSpec(Operation* op) {
      auto spec = std::make_unique<OpQuantSpec>();
      if (auto call_op = dyn_cast<TF::PartitionedCallOp>(op)) {
        StringRef function_name =
            mlir::cast<FlatSymbolRefAttr>(call_op.getFAttr()).getValue();
        if (!function_name.starts_with("composite_")) {
          return spec;
        }
        if (function_name.contains("depthwise_conv2d")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

          }
        }
    
        // The function is in place in the nested module, create a call and yield in
        // the original island.
        OpBuilder builder = OpBuilder::atBlockEnd(&island_op.GetBody());
        auto call_op = builder.create<mlir::TF::PartitionedCallOp>(
            island_op.getLoc(), func_result_types, operands.getArrayRef(),
            SymbolRefAttr::get(
                builder.getContext(), kNestedModule,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

        result_idx += func_op.getNumResults();
    
        auto call_op = builder.create<TF::PartitionedCallOp>(
            module_op.getLoc(), new_types, new_args,
            SymbolRefAttr::get(context, func_op.getSymName()),
            /*config=*/builder.getStringAttr(""),
            /*config_proto=*/builder.getStringAttr(""),
            /*executor_type=*/builder.getStringAttr(""));
        call_op_returns.append(call_op.getResults().begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

            max_iterations);
      } else if (auto call_op = dyn_cast<CallOpInterface>(op)) {
        if (auto func =
                dyn_cast<func::FuncOp>(call_op.resolveCallable(&symbol_table_))) {
          PropagateConstantToCallee(call_op, func, module);
          FailureOr<bool> failure_or_converged = PropagateShapeToFunctions(
              module, call_op.getArgOperands().getTypes(), {func}, max_iterations);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc

          return failure();
        }
      }
    
      return success();
    }
    
    LogicalResult CheckOutputConsumer(
        Operation* call_op, int expected_num_outputs,
        llvm::DenseSet<int> expected_consumer_indices) {
      const int num_results = call_op->getNumResults();
      if (num_results != expected_num_outputs) return failure();
    
      for (int i = 0; i < expected_num_outputs; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

      }
      auto a = Parameter(&builder, 0, ShapeUtil::MakeScalarShape(xla::F32), "a");
      auto b = Parameter(&builder, 1, ShapeUtil::MakeScalarShape(xla::F32), "b");
      XlaOp call_op = xla::Call(&builder, to_apply, {a, b});
    
      std::vector<XlaOp> tuple_values;
      tuple_values.push_back(call_op);
      xla::Tuple(&builder, tuple_values);
    
      TF_ASSERT_OK_AND_ASSIGN(XlaComputation computation, builder.Build());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

              next_values_to_visit.push_back(use.getOwner()->getResult(0));
              continue;
            }
    
            if (auto call_op = llvm::dyn_cast<mlir::CallOpInterface>(owner)) {
              mlir::func::FuncOp func =
                  llvm::dyn_cast<mlir::func::FuncOp>(call_op.resolveCallable());
              if (!func) continue;
              next_values_to_visit.push_back(
                  func.getArgument(use.getOperandNumber()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

          } else {
            return -1;
          }
        }
      };
    
      for (auto call_op :
           func.getRegion().getOps<TF::StatefulPartitionedCallOp>()) {
        for (int i = 0; i < call_op->getNumResults(); ++i) {
          if (IsResourceType(call_op->getResult(i).getType())) {
            Operation* symbol = symbol_table.lookup(call_op.getF());
            if (symbol == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

    // to set attributes specific to this pass.
    void AddAttrs(OpsAdded& ops_added, OpBuilder& builder, int func_count) {
      func::FuncOp& added_func_op = ops_added.func_op;
      func::CallOp& added_call_op = ops_added.call_op;
      StringAttr interface_name =
          builder.getStringAttr(absl::StrCat("func_", func_count));
    
      added_func_op->setAttr(kInterfaceNameAttr, interface_name);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      op_builder.setInsertionPointToStart(&region.front());
      auto call_op = op_builder.create<mlir::func::CallOp>(
          loc, func.getFunctionType().getResults(), func.getSymName(),
          region.getArguments());
      op_builder.create<mlir::TFL::YieldOp>(loc, call_op.getResults());
    }
    
    void InlineStablehloOpRegion(mlir::Region& region, mlir::func::FuncOp func) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
Back to top