Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for NoneType (0.11 sec)

  1. 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)
  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. tensorflow/compiler/mlir/lite/utils/lstm_utils.h

    // arguments specifying the input, weight, projection and bias.
    // The weight, projection, bias and layer norm scale all need to be
    // RankedTensorType.
    // This class sets the layer norm coefficients to NoneType.
    class ConvertLSTMCellSimpleToFusedLSTM {
     public:
      explicit ConvertLSTMCellSimpleToFusedLSTM(mlir::func::FuncOp fused_func_op)
          : fused_func_op_(fused_func_op),
            couple_input_forget_gates_(false),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeInfoProvider.kt

        }
    
        override fun canBeNull(type: KaType): Boolean = (type as KaFirType).coneType.canBeNull(analysisSession.useSiteSession)
    
        override fun isDenotable(type: KaType): Boolean {
            val coneType = (type as KaFirType).coneType
            return analysisSession.useSiteSession.typeApproximator.approximateToSuperType(
                coneType,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/types/KtFirCapturedType.kt

    internal class KaFirCapturedType(
        override val coneType: ConeCapturedType,
        private val builder: KaSymbolByFirBuilder,
    ) : KaCapturedType(), KaFirType {
        override val token: KaLifetimeToken get() = builder.token
        override val nullability: KaTypeNullability get() = withValidityAssertion { coneType.nullability.asKtNullability() }
    
        override val projection: KaTypeProjection
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/types/KtFirType.kt

    import org.jetbrains.kotlin.fir.types.ConeNullability
    
    internal interface KaFirType : KaLifetimeOwner {
        val coneType: ConeKotlinType
    }
    
    internal fun KaFirType.typeEquals(other: Any?): Boolean {
        if (other !is KaFirType) return false
        return this.coneType == other.coneType
    }
    
    internal fun KaFirType.typeHashcode(): Int = coneType.hashCode()
    
    internal fun ConeNullability.asKtNullability(): KaTypeNullability = when (this) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/KtFirAnnotationListForType.kt

            }
    
        companion object {
            fun create(coneType: ConeKotlinType, builder: KaSymbolByFirBuilder): KaAnnotationList {
                return if (coneType.customAnnotations.isEmpty()) {
                    KaEmptyAnnotationList(builder.token)
                } else {
                    KaFirAnnotationListForType(coneType, builder)
                }
            }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top