- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 720 for getDtype (0.48 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size.cc
// element is arbitrarily considered to be 4 bytes. constexpr int64_t kAssumedNumBytesPerElem = 4; int64_t GetSizeOfIntOrFloatConst(TF::ConstOp const_op) { const Type dtype = const_op.getDtype(); const ElementsAttr const_value = const_op.getValue(); const auto bytes_per_elem = static_cast<int64_t>(dtype.getIntOrFloatBitWidth() / CHAR_BIT); return bytes_per_elem * const_value.getNumElements();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 14 04:37:13 UTC 2022 - 2.7K bytes - Viewed (0) -
tensorflow/c/eager/gradients.h
class TapeTensor { public: explicit TapeTensor(AbstractTensorHandle* handle); TapeTensor(const TapeTensor& other); ~TapeTensor(); int64_t GetID() const; tensorflow::DataType GetDType() const; AbstractTensorHandle* ZerosLike() const; AbstractTensorHandle* GetHandle() const; private: AbstractTensorHandle* handle_; }; // A tracing/immediate-execution agnostic tape.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 26 10:27:05 UTC 2022 - 6.9K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/GroovyClassGeneratorUtils.java
CallableInfo callable = request.getInterceptedCallable(); CallableKindInfo kind = callable.getKind(); if (kind == CallableKindInfo.AFTER_CONSTRUCTOR) { Type constructedType = request.getInterceptedCallable().getOwner().getType(); String typeKey = implementationName + ":" + constructedType;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 15 13:39:36 UTC 2023 - 3.7K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/InstrumentedPropertiesResourceGenerator.java
private static String getFqName(CallInterceptionRequest request) { String propertyName = request.getRequestExtras().getByType(PropertyUpgradeRequestExtra.class).get().getPropertyName(); String containingType = request.getInterceptedCallable().getOwner().getType().getClassName(); return containingType + "#" + propertyName; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:40 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc
auto result_type = OpTrait::util::getBroadcastedType(x.getType(), y.getType()); if (!result_type) { if (incompatible_shape_error.getValue()) { mlir::emitError(loc, "non-broadcastable operands"); } else { return UnrankedTensorType::get(builder->getI1Type()); } } auto ranked_type = mlir::dyn_cast<RankedTensorType>(result_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_type_precision.cc
LogicalResult matchAndRewrite(TFL::GatherOp op, PatternRewriter &rewriter) const override { auto const_type = mlir::dyn_cast<ShapedType>(op.getOperand(0).getType()); auto result_type = mlir::dyn_cast<ShapedType>(op.getResult().getType()); if (!const_type || !const_type.getElementType().isSignlessInteger(4) || !result_type || !result_type.getElementType().isSignlessInteger(8)) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtExpressionTypeProvider.kt
* - `Unit` type for statements; */ public fun KtExpression.getKaType(): KaType? = withValidityAssertion { analysisSession.expressionTypeProvider.getKtExpressionType(this) } public fun KtExpression.getKtType(): KaType? = getKaType() /** * Returns the return type of the given [KtDeclaration] as [KaType]. *
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:35 UTC 2024 - 5K bytes - Viewed (0) -
maven-di/src/test/java/org/apache/maven/di/impl/TypeUtilsTest.java
Type expected = new Key<Set<Set<Set<Integer>>>>() {}.getType(); assertEquals(expected, simplifyType(type)); } { Type type = new Key<Set<Set<? extends Set<Integer>>>>() {}.getType(); Type expected = new Key<Set<Set<Set<Integer>>>>() {}.getType(); assertEquals(expected, simplifyType(type));
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Feb 09 17:13:31 UTC 2024 - 7K bytes - Viewed (0) -
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/java/source/JavaElementDelegatingTypeSourceWithSmartPointer.kt
abstract val psiPointer: SmartPsiElementPointer<out PSI> abstract fun getType(psi: PSI): TYPE override val type: TYPE get() { val psi = psiPointer.element ?: error("Cannot restore $psiPointer") return getType(psi) } } internal class JavaElementDelegatingVariableReturnTypeSourceWithSmartPointer<TYPE : PsiType>(
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 14 09:25:26 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
if (!converter.isLegal(convert_op.getOperand().getType())) { auto other_convert_op = dyn_cast_or_null<OtherConvertOp>( convert_op.getOperand().getDefiningOp()); return other_convert_op && converter.isLegal(other_convert_op.getOperand().getType()); } else if (!converter.isLegal(convert_op.getResult().getType())) { if (!convert_op.getResult().hasOneUse()) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0)