Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 139 for call_op (0.12 sec)

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

          }
          if (failed(HandleCaseOrIfOp(case_op, branch_functions))) return failure();
        } else if (auto call_op = llvm::dyn_cast<TF::PartitionedCallOp>(&op)) {
          auto callee = call_op.func();
          if (!callee) {
            return call_op.emitOpError(
                "resource lifting does not support call with nested references.");
          }
          if (failed(HandlePartitionedCallOp(call_op, callee, module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints_test.cc

      func::FuncOp main_fn = FindMainFuncOp(*module_op);
      ASSERT_THAT(main_fn, NotNull());
    
      Operation* call_op = FindOperationOfType<TF::XlaCallModuleOp>(main_fn);
      EXPECT_FALSE(IsHybridQuantizedOp(call_op));
    }
    
    constexpr absl::string_view kModuleDotGeneralFullyConnected = R"mlir(
      module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc

          [&reachable_funcs](Region& src,
                             SmallVectorImpl<func::FuncOp>& funcs_to_visit) {
            src.walk([&reachable_funcs, &funcs_to_visit](CallOpInterface call_op) {
              auto func = dyn_cast_or_null<func::FuncOp>(call_op.resolveCallable());
              if (func && reachable_funcs.insert(func).second)
                funcs_to_visit.push_back(func);
            });
          };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

        if (!main_func) continue;
    
        SymbolTable symbol_table(module_op);
        for (auto call_op : main_func.getOps<TF::PartitionedCallOp>()) {
          func_ops.push_back(dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(
              mlir::cast<FlatSymbolRefAttr>(call_op.getFAttr()).getValue())));
        }
        for (auto call_op : main_func.getOps<TF::StatefulPartitionedCallOp>()) {
          func_ops.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

              Operation* next_op = cur_op_use.getOwner();
              int next_op_operand_num = cur_op_use.getOperandNumber();
              if (auto call_op = llvm::dyn_cast<mlir::CallOpInterface>(next_op)) {
                mlir::func::FuncOp func =
                    llvm::dyn_cast<mlir::func::FuncOp>(call_op.resolveCallable());
                if (!func) continue;
                next_values_to_visit.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

               /*dep=*/{"assert"}},
          });
      TF_ASSERT_OK(ContextFromInterface(unwrap(context.get()))
                       ->AddFunctionDef(assert_and_collective));
    
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> call_op(
          TFE_NewOp(context.get(), "AssertAndCollective", status.get()),
          TFE_DeleteOp);
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      std::unique_ptr<ParallelTensor> reduced_values =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 15.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top