Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for operand_index (0.32 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      llvm::SmallDenseMap<Value, unsigned, 4> exceptions;
      unsigned operand_idx = 0;
      for (Value arg : op.getValues()) {
        Operation* arg_op = arg.getDefiningOp();
        if (arg_op && arg_op->getName() == first_arg_op->getName()) {
          ++operand_idx;
          continue;
        }
        exceptions[arg] = operand_idx++;
      }
      // Recall those inputs to the concat op that are not produced by a binary op
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

        }
      }
    }
    
    // Evaluate `operand_idx` w.r.t. `op`'s operands. If `operand_idx` is a positive
    // number or a zero, it is returned as it is. If it is a negative number, it
    // means it is counting backwards and will return the zero-based operand index
    // for `op`.
    //
    // `operand_idx` should be within the range: [-num_operands, num_operands - 1].
    int EvaluateOperandIdx(const int operand_idx, Operation& op) {
      if (operand_idx < 0) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h

    //
    template <int QuantDim, int OperandIndex = 1>
    class AffineOpCoefficient {
     public:
      template <typename ConcreteType>
      class Impl
          : public TraitBase<ConcreteType,
                             AffineOpCoefficient<QuantDim, OperandIndex>::Impl> {
       public:
        static int GetCoefficientOperandIndex() { return OperandIndex; }
        static int GetQuantizationDim() { return QuantDim; }
      };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

        // Look for quantized dimension specs for each quantized type and
        // populate `coeff_op_quant_dim`.
        for (const auto& [operand_idx, quantized_type] :
             static_range_ptq_spec.input_quantized_types()) {
          if (quantized_type.has_dimension_specs()) {
            spec.coeff_op_quant_dim[operand_idx] =
                quantized_type.dimension_specs().dimension();
          }
        }
      }
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.cc

      absl::flat_hash_set<int> quantizable_operands = GetQuantizableOperands(op);
      if (quantizable_operands.empty()) return failure();
    
      bool has_change = false;
      for (auto operand_idx : quantizable_operands) {
        Value operand = op->getOperand(operand_idx);
        Operation* preceding_op = operand.getDefiningOp();
        if (!preceding_op || isa<TF::ConstOp>(preceding_op)) continue;
    
        int preceding_result_idx = -1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc

                  llvm::dyn_cast_or_null<tf_device::ParallelExecuteOp>(parent)) {
            int operand_idx = use->getOperandNumber();
            auto execute_results = execute.GetRegionOutputs(
                device_return->getParentRegion()->getRegionNumber());
            if (operand_idx >= execute_results.size()) return nullptr;
    
            auto result_from_use = execute_results[operand_idx];
            if (!result_from_use.hasOneUse()) return nullptr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 04:14:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

               << " operand, but island returns " << result_count;
      for (int operand_idx : llvm::seq<int>(0, yield.getNumOperands())) {
        if (island.getResult(operand_idx).getType() !=
            yield.getOperand(operand_idx).getType())
          return yield.emitOpError()
                 << "operand #" << operand_idx << " type mismatch island results";
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

        Type operand_type = operand_type_and_idx.value();
        int32_t operand_idx = operand_type_and_idx.index();
        for (int32_t i = n * operand_idx, e = i + n; i < e; ++i)
          if (failed(VerifyCompatibleTypes(operand_type, op.getType(i))))
            return op.emitOpError() << "incompatible types for result " << i
                                    << " and terminator operand " << operand_idx;
      }
    
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

          device_cluster.GetBody().getTerminator());
    
      for (OpOperand& operand : return_op->getOpOperands()) {
        auto operand_idx = operand.getOperandNumber();
        return_operand_map[return_op.getOperand(operand_idx)].push_back(
            operand_idx);
      }
      // `return_value_from_host` and `return_value_from_device` together contain
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

               << " operand, but control_node returns " << result_count;
      for (const int operand_idx : llvm::seq<int>(0, yield.getNumOperands())) {
        if (control_node.getResult(operand_idx).getType() !=
            yield.getOperand(operand_idx).getType())
          return yield.emitOpError() << "operand #" << operand_idx
                                     << " type mismatch control_node results";
      }
      return success();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top