Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 159 for Operands (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

      constraints.Walk([](Value value, ValueConstraint constraint) {
        for (OpOperand &operand : value.getUses())
          operand.getOwner()->emitRemark(
              llvm::formatv("operand #{0} constrained to: {1}",
                            operand.getOperandNumber(), constraint));
      });
    }
    
    void EmitInputsConstraintsRemarks(func::FuncOp func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h

          ConversionPatternRewriter& rewriter) const final {
        {
          OperandRange operands = scatter_op.getInputs();
          Value indices = scatter_op.getScatterIndices();
          OperandRange updates = scatter_op.getUpdates();
          if (operands.size() != 1 || updates.size() != 1) return failure();
    
          ShapedType operand_type = mlir::cast<ShapedType>(operands[0].getType());
          ShapedType indices_type = mlir::cast<ShapedType>(indices.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

                    "Has to fallback values which might introduce errors.\n");
    
      // Use the first immutable state to quantize the rest operands and results.
      if (!immutable_states.empty()) return immutable_states.front()->params;
    
      // If there are no immutable states, use the operand's state if it is the
      // only one operand and has parameters propagated.
      if (op->getNumOperands() == 1 && mutable_operands_num == 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. src/fmt/print.go

    }
    
    // Print formats using the default formats for its operands and writes to standard output.
    // Spaces are added between operands when neither is a string.
    // It returns the number of bytes written and any write error encountered.
    func Print(a ...any) (n int, err error) {
    	return Fprint(os.Stdout, a...)
    }
    
    // Sprint formats using the default formats for its operands and returns the resulting string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      if (flatten_tuple) {
        auto operands = llvm::to_vector(values);
        operands.push_back(token);
        return operands;
      }
    
      auto value = values[0];
      // If value with token already exists, reuse it.
      auto it = rewritten_values.find(value);
      if (it != rewritten_values.end()) return {it->getSecond()};
    
      auto create_tuple = [&](ArrayRef<Value> operands) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      }
    
      std::unique_ptr<OpQuantSpec> spec = GetUniformOpQuantSpec(op);
      absl::flat_hash_set<int> operands = spec->quantizable_operands;
      int quant_dim = -1;
      if (enable_per_channel_quantization && operands.size() == 1) {
        quant_dim = spec->coeff_op_quant_dim[*(operands.begin())];
      }
      attrs.push_back(rewriter.getNamedAttr("rhs_quantization_axis",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top