- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for NoneType (0.12 sec)
-
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) -
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) -
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) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
inputs.reserve(quantizing_op->getNumOperands()); for (const auto& operand : quantizing_op->getOperands()) { Type operand_type = operand.getType(); if (operand_type.isa<NoneType>()) { inputs.push_back(operand); continue; } Type elem_type = operand_type.cast<TensorType>().getElementType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0)