- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for NoneType (0.14 sec)
-
test/typeparam/issue50264.go
_ = Some(hello{}) res := Applicative2(func(a int, b int) int { return 0 }) _ = res } type NoneType[T any] struct{} func (r NoneType[T]) Recover() any { return nil } type Func2[A1, A2, R any] func(a1 A1, a2 A2) R func Some[T any](v T) any { _ = Some2[T](v) return NoneType[T]{}.Recover() } //go:noinline func Some2[T any](v T) any { return v } type Nil struct{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 822 bytes - Viewed (0) -
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) -
tests/test_params_repr.py
def test_body_repr_list(): assert repr(Body([])) == "Body([])" def test_depends_repr(): assert repr(Depends()) == "Depends(NoneType)" assert repr(Depends(get_user)) == "Depends(get_user)" assert repr(Depends(use_cache=False)) == "Depends(NoneType, use_cache=False)" assert ( repr(Depends(get_user, use_cache=False)) == "Depends(get_user, use_cache=False)"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 3.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
internal/s3select/progress.go
} scannedReader := newCountUpReader(rc) pr := progressReader{ rc: rc, scannedReader: scannedReader, } var r io.Reader switch compType { case noneType: r = scannedReader case gzipType: gzr, err := gzip.NewReader(scannedReader) if err != nil { if errors.Is(err, gzip.ErrHeader) || errors.Is(err, gzip.ErrChecksum) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Oct 18 15:44:36 UTC 2021 - 4.2K bytes - Viewed (0) -
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)