Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 522 for OP (0.03 sec)

  1. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

        lstm_variant->op_code =
            tflite::BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_LSTM;
      } else {
        op.emitError("ConvertLstmStatsToQDQs pass only supports LSTMs.");
        return failure();
      }
      lstm_variant->use_projection =
          !mlir::isa<NoneType>(op.getProjectionWeights().getType());
      lstm_variant->use_peephole =
          !mlir::isa<NoneType>(op.getCellToOutputWeights().getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

      func_.walk([&](quantfork::QuantizeRegionOp op) { all_ops.push_back(op); });
      return all_ops;
    }
    
    KernelSpecs::Signature QuantizeContext::GetSignature(
        quantfork::QuantizeRegionOp op) {
      KernelSpecs::Signature signature;
      signature.reserve(op.getInputSpecs().size() + op.getOutputSpecs().size());
      for (int i = 0; i < op.getNumOperands(); ++i) {
        DeviceTarget::AppendToSignature(GetOperandParams(op, i), &signature);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      op->walk([&](Operation *op) {
        if (op->getDialect()->getNamespace() != "vhlo") return;
    
        // Convert operands
        rewriter.modifyOpInPlace(op, [&]() {
          rewriter.setInsertionPoint(op);
          WrapOperandsInUnrealizedCastAndConvert(op, converter, rewriter);
    
          // Convert op types
          for (auto value : op->getResults()) {
            rewriter.setInsertionPointAfter(value.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/memcombine.go

    	v := a[0]
    	if v.Op == shiftOp {
    		v = v.Args[0]
    	}
    	var extOp Op
    	if orOp == OpOr64 && (v.Op == OpZeroExt8to64 || v.Op == OpZeroExt16to64 || v.Op == OpZeroExt32to64) ||
    		orOp == OpOr32 && (v.Op == OpZeroExt8to32 || v.Op == OpZeroExt16to32) ||
    		orOp == OpOr16 && v.Op == OpZeroExt8to16 {
    		extOp = v.Op
    		v = v.Args[0]
    	} else {
    		return false
    	}
    	if v.Op != OpLoad {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    //===----------------------------------------------------------------------===//
    // DivNoNan and MulNonNan op patterns.
    //===----------------------------------------------------------------------===//
    
    class BinaryNoNanPat<Op FromOp, Op ToOp>
      : Pat<(FromOp $l, $r),
            (TF_SelectV2Op (TF_EqualOp $r,
                                       (TF_ConstOp:$zero (GetScalarOfType<0> $r)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

          auto loader,
          tensorflow::XlaCallModuleLoader::Create(
              context, static_cast<int>(op.getVersion()), op.getModule().str(),
              std::move(disabled_checks), std::move(platforms),
              /*num_invocation_args=*/op.getArgs().size(),
              op.getHasTokenInputOutput()));
      return std::move(*loader).module();
    }
    
    // Renames functions in the stablehlo module to avoid naming conflicts with
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

        // And the dequant_op op will propagate towards quant_op only.
        if (failed(quantizeOps(rewriter, op, weight_component_spec.value()))) {
          return failure();
        }
        return success();
      }
    
     private:
      // Check if op's user or op's user after an identity op is connected to a
      // terminator.
      bool checkIfAnyUserIsConnectedToTermiantor(BlockArgument op) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

        InitializeArgState(arg, value);
      }
    
      fn_.walk([&](Operation* op) {
        std::unique_ptr<OpQuantScaleSpec> scale_spec = GetQuantScaleSpec(op);
        if (!IsOpQuantizable(op) && !scale_spec->has_same_scale_requirement) {
          return;
        }
        work_list_.push_back(op);
    
        for (int i = 0; i < op->getNumOperands(); ++i) {
          Value operand = op->getOperand(i);
          if (Operation* inst = operand.getDefiningOp()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

      LogicalResult match(Operation* op) const override {
        if (op->getNumResults() != 1) {
          return failure();
        }
        auto type = mlir::cast<TensorType>(op->getResult(0).getType());
        if (!type || !type.getElementType().isF32()) {
          return failure();
        }
        return success(
            op->hasOneUse() &&
            IsWeightQuantizableFunction(*op->getUses().begin(), type.getRank()));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.h

      // Runs the analysis and populates `control_predecessors_` for `op`.
      void AnalyzeOp(Operation* op);
    
      // Updates `control_predecessors_` for given `resource_id` and `op`.
      void AddPredecessorsForAccess(ResourceId resource_id, Operation* op,
                                    bool read_only);
    
      // Updates resource access for given `resource_id` and `op` in
      // `per_resource_access_info_` and `op_to_resource_ids_`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 14.8K bytes
    - Viewed (0)
Back to top