Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for NoneType (0.26 sec)

  1. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      EXPECT_EQ(it->getNumOperands(), 24);
      EXPECT_EQ(it->getNumResults(), 1);
      // cifg = false, so input2input is not None.
      EXPECT_FALSE(mlir::isa<NoneType>(it->getOperand(1).getType()));
      // input layer norm is None
      EXPECT_TRUE(mlir::isa<NoneType>(it->getOperand(20).getType()));
      // proj_bias is F32
      EXPECT_TRUE(mlir::cast<RankedTensorType>(it->getOperand(17).getType())
                      .getElementType()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/utils.td

      NativeCodeCall<"TransposeLastTwoDims($0[0].getType())">;
    
    def AreLastTwoDimsTransposed : Constraint<CPred<
      "TFL::AreLastTwoDimsTransposed($0)">>;
    
    // Checks if the param passed is of NoneType.
    def IsNoneType : Constraint<CPred<"$0.getType().isa<NoneType>()">>;
    
    def ConstantLikePred : CPred<"::mlir::matchPattern($0, ::mlir::m_Constant())">;
    def IsConstantLike : Constraint<ConstantLikePred>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. internal/s3select/select.go

    		return errMalformedXML(err)
    	}
    
    	parsedType := CompressionType(strings.ToUpper(s))
    	if s == "" || parsedType == "NONE" {
    		parsedType = noneType
    	}
    
    	switch parsedType {
    	case noneType, gzipType, bzip2Type, snappyType, s2Type, zstdType, lz4Type:
    	default:
    		return errInvalidCompressionFormat(fmt.Errorf("invalid compression format '%v'", s))
    	}
    
    	*c = parsedType
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

        return failure();
      }
      lstm_variant->use_projection =
          !mlir::isa<NoneType>(op.getProjectionWeights().getType());
      lstm_variant->use_peephole =
          !mlir::isa<NoneType>(op.getCellToOutputWeights().getType());
      lstm_variant->use_layer_norm =
          !mlir::isa<NoneType>(op.getForgetLayerNormCoefficients().getType());
    
      *op_property = operator_property::GetOperatorProperty(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

          SmallVector<Value, 4> inputs;
          inputs.reserve(candidate_op->getNumOperands());
          for (auto operand : candidate_op->getOperands()) {
            Type operand_type = operand.getType();
            if (mlir::isa<NoneType>(operand_type)) {
              inputs.push_back(operand);
              continue;
            }
    
            auto ele_type =
                mlir::cast<TensorType>(operand.getType()).getElementType();
            if (auto dq_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

              TypeIsPred<"input_gate_bias", NoneType>,
              TypeIsPred<"input_layer_norm_coefficients", NoneType>]>,
         Neg<Or<[
           TypeIsPred<"input_to_input_weights", NoneType>,
           TypeIsPred<"recurrent_to_input_weights", NoneType>,
           TypeIsPred<"input_gate_bias", NoneType>]>>]>>;
    
    
    // TODO(b/137798843): Need to add an additional constraint for both LSTM and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          return failure();
        }
    
        Value filter = fc_op.getFilter();
        Value bias = fc_op.getBias();
        ElementsAttr bias_value;
        const bool is_none_bias = mlir::isa<NoneType>(bias.getType());
        if (fc_op.getFusedActivationFunction() != "NONE") return failure();
    
        if (!is_none_bias && !matchPattern(bias, m_Constant(&bias_value)))
          return failure();
    
        // Rewrite
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/cluster_util.h"
    
    namespace mlir {
    namespace TFL {
    namespace common {
    
    bool IsConstantOrNone(Operation* op) {
      return (op->getNumResults() == 1 &&
              mlir::isa<NoneType>(op->getResult(0).getType())) ||
             matchPattern(op, m_Constant()) || isa<QConstOp>(op);
    }
    
    // Pre-order traverse, adding results and BlockArgs to `been_defined` and
    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/quantization/stablehlo/passes/quantization_patterns.cc

          inputs.reserve(op_with_region->getNumOperands());
          for (Value operand : op_with_region->getOperands()) {
            const Type operand_type = operand.getType();
            if (mlir::isa<NoneType>(operand_type)) {
              inputs.push_back(operand);
              continue;
            }
    
            const Type element_type =
                mlir::cast<TensorType>(operand.getType()).getElementType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

          SmallVector<Value, 4> inputs;
          inputs.reserve(quantizing_op->getNumOperands());
          for (auto operand : quantizing_op->getOperands()) {
            Type operand_type = operand.getType();
            if (operand_type.isa<NoneType>()) {
              inputs.push_back(operand);
              continue;
            }
    
            auto ele_type = operand.getType().cast<TensorType>().getElementType();
            if (static_cast<const ConcreteT*>(this)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top