- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 978 for getDtype (0.41 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_patterns.td
def : Pat<(TF_RandomUniformOp:$old $shape, $seed, $seed2), (MHLO_RngOp (MHLO_ConstantOp (NativeCodeCall<"$_builder.getFloatAttr(old.getDtype(), 0.0)">)), (MHLO_ConstantOp (NativeCodeCall<"$_builder.getFloatAttr(old.getDtype(), 1.0)">)), (CastValueToI64 $old, $shape), MHLO_RngDistributionValue<"UNIFORM">), [(IsShapedTensor $shape)]>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 18:46:23 UTC 2024 - 34.8K bytes - Viewed (0) -
tensorflow/c/eager/tape.h
sources.reserve(output_tensors.size()); for (const TapeTensor& output_tensor : output_tensors) { // Ownership of `aid` transferred to CallBackwardFunction below. Gradient* aid; if (output_tensor.GetDType() == tensorflow::DT_VARIANT) { // Note: Needs to be zeros rather than ones since there's currently no // ones_like for variants. aid = output_tensor.ZerosLike(); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 02 12:40:29 UTC 2024 - 47.2K bytes - Viewed (0) -
tensorflow/c/eager/gradients.cc
handle_ = other.handle_; handle_->Ref(); } TapeTensor::~TapeTensor() { handle_->Unref(); } int64_t TapeTensor::GetID() const { return ToId(handle_); } tensorflow::DataType TapeTensor::GetDType() const { return handle_->DataType(); } AbstractTensorHandle* TapeTensor::GetHandle() const { return handle_; } AbstractTensorHandle* TapeTensor::ZerosLike() const { return nullptr; } class TapeVSpace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 19.3K 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) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertTrue( from.getType() + " is expected to be assignable to " + to.getType(), to.isSupertypeOf(from)); assertTrue( to.getType() + " is expected to be a supertype of " + from.getType(), to.isSupertypeOf(from)); assertTrue( from.getType() + " is expected to be a subtype of " + to.getType(), from.isSubtypeOf(to)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 88.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) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc
int32_t dim) { Type attribute_type = builder.getI64Type(); return builder.create<TF::StridedSliceOp>( loc, RankedTensorType::get( {}, mlir::cast<ShapedType>(shape_value.getType()).getElementType()), /*input=*/shape_value, /*begin=*/Create1DConstValue<int32_t>(builder, loc, {dim}), /*end=*/Create1DConstValue<int32_t>(builder, loc, {dim + 1}),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeClassSourceGenerator.java
.addModifiers(Modifier.PUBLIC, Modifier.STATIC) .addParameter(typeName(callable.getOwner().getType()), SELF_PARAMETER_NAME) .addParameters(parameters) .addCode(generateMethodBody(implementation, callable, implementationExtra)) .returns(typeName(callable.getReturnType().getType())) .addAnnotations(getAnnotations(implementationExtra)) .build();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 09:11:23 UTC 2024 - 11K bytes - Viewed (0)