Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for operands_ (0.27 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

        Interface for ops potentially have same operands and results scales.
      }];
    
      let methods = [
        InterfaceMethod<
          [{Returns whether same operands and results scales are required.}],
          "bool", "RequiredSameOperandsAndResultsScale",
          (ins "bool":$sign, "int":$bit_width), [{}], [{return true;}]
        >,
        InterfaceMethod<
          [{Returns whether operands and results must have the same quantized axis.}],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/split-merged-operands.mlir

    // RUN: tf-opt -tfl-split-merged-operands %s | FileCheck %s
    
    func.func @testSingleLstm(%arg0: tensor<4x4xf32>, %arg1: tensor<4xf32>, %arg2: tensor<4x4x4xf32>) -> tensor<4x4x4xf32> {
      // CHECK-LABEL: testSingleLstm
      // CHECK-DAG:  %[[CST_0:.*]] = "tfl.pseudo_const"() <{value = dense<0.000000e+00> : tensor<4x4xf32>}> : () -> tensor<4x4xf32>
      // CHECK-DAG:  %[[CST_1:.*]] = "tfl.pseudo_const"() <{value = dense<0.000000e+00> : tensor<4x4xf32>}> : () -> tensor<4x4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

        llvm::SetVector<Value> operands;
        getUsedValuesDefinedAbove(island_op.getBody(), operands);
    
        SmallVector<Type, 16> func_operand_types;
        func_operand_types.reserve(operands.size());
        for (Value operand : operands)
          func_operand_types.push_back(operand.getType());
    
        // Function results are the yield operands
        SmallVector<Type, 16> func_result_types;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_op_interfaces.td

    // TFL op interface for stateful operands.
    
    def TFL_StatefulOp : OpInterface<"StatefulOpInterface"> {
      let description = [{
        Interface for ops that are stateful and need to identify stateful operands.
    
        Stateful operands correspond to TF's variables semantics. An op that has 1
        or more stateful operands is a stateful op.
      }];
    
      let methods = [
        InterfaceMethod<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold_utils.cc

                                    llvm::SmallVector<Attribute>& results) {
      // If any operand is nullptr returns true for a failure.
      // TODO(b/120678030): remove this constraint if we find operators can be
      // evaluated with some unknown operands.
      if (std::any_of(operands.begin(), operands.end(),
                      [](Attribute operand) { return !operand; })) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc

    };
    
    // Rewrites the given op to `OpT` op after adding the given operand at the end.
    template <typename OpT>
    OpT AddOperandAndRewriteAs(Operation* op, Value operand, NamedAttrList attr,
                               OpBuilder* builder) {
      builder->setInsertionPoint(op);
      auto operands = llvm::to_vector<4>(op->getOperands());
      operands.push_back(operand);
      auto new_op = builder->create<OpT>(op->getLoc(), op->getResultTypes(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

    // Returns the RankedTensorType for the given operand. TensorFlow constant ops
    // may have non-static shape because the shape is not propagated during constant
    // folding. If the defining op for the given operand is a constant op, this
    // routine uses the constant op's attribute to get the actual shape.
    RankedTensorType GetRankedTensorTypeForOperand(Value operand) {
      DenseElementsAttr attr;
      if (matchPattern(operand, m_Constant(&attr))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

             matchPattern(op, m_Constant()) || isa<QConstOp>(op);
    }
    
    // Pre-order traverse, adding results and BlockArgs to `been_defined` and
    // collecting operands not contained within `been_defined`. If we encounter an
    // operand that references a Value that has been defined (and added to
    // `been_defined`) it is garuanteed that the Value definition is not contained
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc

        return;
      }
    
      Operation* input_def = input.getDefiningOp();
    
      // If ShapeOp operand is a ReadVariableOp result where the ReadVariableOp
      // operand is a replicate resource block argument, replace ShapeOp with
      // VariableShapeOp and use the associated first replica operand as its
      // operand.
      auto read_var_op = llvm::dyn_cast<TF::ReadVariableOp>(input_def);
      if (!read_var_op) return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/analyze_variables.cc

        }
    
        // If any of the operands is a resource type, then we break
        // and mark the module as not valid for TFLite legalization.
        // Note: this might disable native variables in more than needed cases.
        // TODO(b/189370197): Enhance variable analysis.
        for (auto operand : op->getOperands()) {
          if (mlir::isa<TF::ResourceType>(
                  getElementTypeOrSelf(operand.getType()))) {
            legalize_to_tfl = false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top