Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 237 for Operands (0.42 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

    // In order to be clustered operation can require its operands to satisfy
    // some constraints (e.g. reduction operation can require reduction dimension
    // operand to be a constant value).
    enum class ValueConstraint {
      // Operand must have statically known rank.
      kRank = 0,
      // Operand must have statically known shape (all dimensions are known at
      // compile time).
      kShape = 1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

    // Requires the function to provide arguments for each of the `fn` operands
    // that is compatible for tensor cast.
    static Operation* CallFn(Location loc, const std::function<Value(int)>& get_arg,
                             func::FuncOp fn, OpBuilder* builder) {
      FunctionType fn_type = fn.getFunctionType();
      llvm::SmallVector<Value, 4> operands;
      int num_operands = fn_type.getNumInputs();
      operands.reserve(num_operands);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

    void UpdateStatesAndReplaceStablehloOps(
        const SetVector<Value>& operands, const SetVector<Value>& defined_values,
        const LiveOuts& liveouts, ModuleOp module_op,
        const SetVector<Operation*>& reverse_subgraph, const int stablehlo_func_id,
        func::FuncOp main_func, const bool is_last_subgraph = false) {
      SetVector<Value> inputs = operands;
      for (Value defined_value : defined_values) {
        inputs.remove(defined_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

          state.addRegion()->takeBody(region);
        }
        // Assign existing operands for item.
        operands.assign(item.operand_begin(), item.operand_end());
    
        // Collect defining ops for existing operands.
        defining_ops.clear();
        for (Value operand : operands) {
          defining_ops.insert(operand.getDefiningOp());
        }
        for (Value new_control_input : llvm::reverse(new_control_inputs_for_item)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

      if (!IsIllegalType(v.getType())) {
        return true;
      }
      if (v.getUsers().empty()) {
        return false;
      }
      return llvm::all_of(v.getUsers(), [&](OpOperand operand) {
        return IsQintToIntCast(operand.getOwner());
      });
    }
    
    // Check if an op operand value is defined by int -> qint TF Cast OP.
    bool IsQintValueDefinedByIntToQintCast(Value v) {
      if (!IsIllegalType(v.getType())) {
        return true;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td

        index: the index in the resource array
      }];
    
      let arguments = (ins
        TFTensorType:$arg,
        I64Attr:$index
      );
    
      let results = (outs);
    
      let assemblyFormat = "operands attr-dict";
    }
    
    def GetResourceOp : TensorflowMlrt_Op<"get_resource", []> {
      let summary = "get a tensor in resource array";
    
      let description = [{
        Get a tensor in resource array.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/ppc64/doc.go

    1. Operand ordering
    
    In Go asm, the last operand (right) is the target operand, but with PPC64 asm,
    the first operand (left) is the target. The order of the remaining operands is
    not consistent: in general opcodes with 3 operands that perform math or logical
    operations have their operands in reverse order. Opcodes for vector instructions
    and those with more than 3 operands usually have operands in the same order except
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:47:45 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops_invalid.mlir

    // Check that a fetch with operands after a control input triggers the verifier.
    func.func @invalid_fetch(%arg0: tensor<*xf32>, %ctl: !tf_executor.control) -> tensor<*xf32> {
      %result = "tf_executor.graph"() ({
        "tf_executor.fetch"(%arg0, %ctl, %arg0) : (tensor<*xf32>, !tf_executor.control, tensor<*xf32>) -> ()
    // expected-error@-1 {{'tf_executor.fetch' op found non-control operand #2 after control operand}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 19 01:12:10 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

        the same symbol scope as the callee. The operands and result types of the
        call must match the specified function type. The callee is encoded as a
        symbol reference attribute named "callee".
    
        Example:
    
        ```mlir
        %2 = tfr.call @my_add(%0, %1) : (tfr.tensor, f32) -> tfr.tensor_list
        ```
    
        Note that the operands of the `call` operation can only be with tfr.tensor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

      ConstOp permutation_op;
    
      // Layout dependent operands must be transpose operations with the same
      // permutation indices.
      for (unsigned idx : layout_dependent_operands) {
        OpOperand& operand = op->getOpOperand(idx);
    
        // Operand must be defined by a transpose op.
        TransposeOp transpose =
            dyn_cast_or_null<TransposeOp>(operand.get().getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top