Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 139 for call_op (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
  4. tensorflow/compiler/mlir/tfr/tests/ops.mlir

    func.func private @tensor_invalid_1() -> !tfr.tensor<[N, T>
    
    // -----
    
    // expected-error@+1 {{unbalanced}}
    func.func @tensor_invalid_2() -> !tfr.tensor<[N, T]
    
    // -----
    
    // CHECK-LABEL: call_op
    func.func @call_op(%arg0: !tfr.tensor<T>, %arg1: !tfr.tensor_list<TL>, %arg2: i32) -> !tfr.tensor<K> {
      %0 = tfr.call @Foo(%arg0, %arg1, %arg2) : (!tfr.tensor<T>, !tfr.tensor_list<TL>, i32) -> !tfr.tensor<K>
      func.return %0 : !tfr.tensor<K>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.h

    // `ExtractSubgraphToFunc` adds exactly two "new" `Operations`, a FuncOp and
    // a CallOp. Pass these back to the caller for setting more specific attributes
    // after graph mutation has taken place.
    struct OpsAdded {
      mlir::func::FuncOp func_op;
      mlir::func::CallOp call_op;
    };
    
    // Given a `Subgraph` containing a sequence of adjacent `Operations` from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 17 18:49:43 UTC 2022
    - 6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

          while (auto cast_op =
                     llvm::dyn_cast_or_null<CastOp>(value.getDefiningOp())) {
            // Consider cast compatibility in case
            //    %cast = "tf.Cast"(%0) : (tensor<2xi64>) -> tensor<2xf32>
            // is skipped.
            if (cast_op.getSrcT() != cast_op.getDstT()) {
              break;
            }
            value = cast_op.getOperand();
          }
          return value;
        };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      auto get_call_index = [&](mlir::Block& b) -> std::optional<int> {
        if (b.getOperations().size() != 2) return std::nullopt;
        if (auto call_op = dyn_cast<mlir::func::CallOp>(b.front()))
          return subgraph_index_map_.at(call_op.getCallee().str());
        return std::nullopt;
      };
      auto body_subgraph_index = get_call_index(op.getBody().front());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top