Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for NoneType (0.14 sec)

  1. 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)
  2. 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)
  3. tensorflow/cc/experimental/libtf/value.h

    TF_UNION_ACCESS_INSTANCE(impl::String, s);
    TF_UNION_ACCESS_INSTANCE(impl::TaggedValueTensor, tensor);
    TF_UNION_ACCESS_INSTANCE(impl::TensorSpec, tensor_spec);
    #undef TF_UNION_ACCESS_INSTANCE
    
    /// The union accessor for `NoneType`.
    template <>
    struct TaggedValue::UnionAccess<impl::None> {
      static impl::None& unsafe_reference(TaggedValue& t) {
        return None::GetInstance();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:23:45 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

    }
    
    LogicalResult EnsureBias(Operation* op, int bias_idx,
                             PatternRewriter& rewriter) {
      auto bias = op->getOperand(bias_idx);
    
      if (!mlir::isa<NoneType>(bias.getType())) return failure();
    
      // Proceed to create a zero bias.
      auto output = op->getResult(0);
      auto output_type = mlir::dyn_cast_or_null<RankedTensorType>(output.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      // on failure.
      auto build_tensor_and_buffer = [&](Value value, const int subgraph_index,
                                         const std::string& tensor_name) {
        // NoneType represents optional and may be skipped here.
        if (mlir::isa<NoneType>(value.getType())) {
          return true;
        }
    
        tensor_index_map.insert({value, tensors.size()});
        tensor_index_map_[subgraph_index][tensor_name] = tensors.size();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

      if (op_infos.empty())
        return parser.emitError(loc) << " expects at least one data operand";
    
      Attribute frame;
      if (parser.parseKeyword("frame") ||
          parser.parseAttribute(frame, NoneType::get(context), "frame_name",
                                result.attributes))
        return failure();
    
      Type i64 = parser.getBuilder().getIntegerType(64);
      if (parser.parseOptionalKeyword("parallel_iterations")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      if (getFusedActivationFunction() != "NONE") return failure();
      if (getWeightsFormat() != "DEFAULT") return failure();
    
      // Bias tensor is optional.
      const bool has_bias = !(!getBias() || getBias().getType().isa<NoneType>());
    
      // Get the tensors.
      DenseElementsAttr input_tensor, weights_tensor, bias_tensor;
      if (!matchPattern(getInput(), m_Constant(&input_tensor)) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/types/KtFirUsualClassType.kt

                builder.classifierBuilder.buildClassLikeSymbolByLookupTag(coneType.lookupTag)
                    ?: errorWithFirSpecificEntries("Class was not found", coneType = coneType)
            }
    
        override val qualifiers by cached {
            UsualClassTypeQualifierBuilder.buildQualifiers(coneType, builder)
        }
    
        override val typeArguments: List<KaTypeProjection> get() = withValidityAssertion { qualifiers.last().typeArguments }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

        override fun approximateToSuperPublicDenotableType(type: KaType, approximateLocalTypes: Boolean): KaType? {
            require(type is KaFirType)
            val coneType = type.coneType
            val approximatedConeType = PublicTypeApproximator.approximateTypeToPublicDenotable(
                coneType,
                rootModuleSession,
                approximateLocalTypes = approximateLocalTypes,
            )
    
            return approximatedConeType?.asKtType()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 10:25:23 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/types/KtFirTypeParameterType.kt

                ?: errorWithFirSpecificEntries("Type parameter was not found", coneType = coneType)
        }
    
        override val annotations: KaAnnotationList by cached {
            KaFirAnnotationListForType.create(coneType, builder)
        }
    
        override val nullability: KaTypeNullability get() = withValidityAssertion { coneType.nullability.asKtNullability() }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top