- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 171 for res_value (0.24 sec)
-
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
builder.getF32Type()); auto new_value = DenseElementsAttr::get<float>(compressed_data_type, compressed_data); auto s_const = builder.create<SparseConstOp>( op->getLoc(), cst.getValue(), s_param, new_value); value.replaceAllUsesWith(s_const.getResult()); cst.erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/jit/node_matchers.h
} void set_attr(AttrKeyValuePair attr) { DCHECK(IsEmpty()); attr_ = std::move(attr); } bool IsEmpty() const { return !name().has_value() && !op().has_value() && !inputs().has_value() && !control_deps().has_value() && !attr().has_value(); } private: std::optional<string> name_; std::optional<string> op_; std::optional<string> assigned_device_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 8.1K bytes - Viewed (0) -
fastapi/encoders.py
>>> decimal_encoder(Decimal("1.0")) 1.0 >>> decimal_encoder(Decimal("1")) 1 """ if dec_value.as_tuple().exponent >= 0: # type: ignore[operator] return int(dec_value) else: return float(dec_value) ENCODERS_BY_TYPE: Dict[Type[Any], Callable[[Any], Any]] = { bytes: lambda o: o.decode(), Color: str, datetime.date: isoformat,
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc
return elemental_type; } // Unsupported. return nullptr; } ElementsAttr UniformQuantizedPerAxisValueConverter::convert( Attribute real_value) { if (auto attr = dyn_cast<DenseFPElementsAttr>(real_value)) { return convert(attr); } return nullptr; } DenseElementsAttr UniformQuantizedPerAxisValueConverter::convert( DenseFPElementsAttr attr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/ProjectStateStore.kt
/** * Create or load value, with load-after-store semantics */ fun loadOrCreateValue(key: K, creator: () -> V): V { val address = loadOrCreateAddress(key, creator) return readValue(key, address) } /** * If value has to be created, the original value is returned without (de)serialization *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/revived_types/partially_revived_objects.cc
} const DictValue& kwargs_dict = kwargs.dict_value(); NamedParamMap result; result.reserve(kwargs_dict.fields_size()); for (const auto& key_value : kwargs_dict.fields()) { const std::string& key = key_value.first; const StructuredValue& value = key_value.second; if (!value.has_tensor_spec_value()) { return absl::FailedPreconditionError(absl::StrCat(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 09 20:11:48 UTC 2023 - 23.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
auto cluster_name = GetTpuClusterName(wrapped_op); if (cluster_name.has_value() && cluster_name.value() != target_cluster_name) { tpu_ops.erase(iter); return true; } if (!cluster_name.has_value() && !tpu_ops.count(wrapper.getOperation())) { tpu_ops.erase(iter); return true; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/compute_cost.cc
// We only care about those functions annotated with "tac.interface_name". auto interface_name = GetInterFaceName(func); if (!interface_name.has_value()) continue; auto target = GetTargetAnnotation(func); if (!target.has_value()) { func.emitError("we cannot get hardware info for this function."); signalPassFailure(); } float total_cost = GetCostForFunc(&func, *target);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 15:10:02 UTC 2022 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/decompose_optionals.mlir
func.func @from_value(%arg0: tensor<f32>) { // CHECK-NOT: Optional %0 = "tf.OptionalFromValue"(%arg0) : (tensor<f32>) -> tensor<!tf_type.variant<tensor<f32>>> return } // ----- // CHECK-LABEL: @get_value func.func @get_value(%arg0: tensor<!tf_type.variant<tensor<f32>>>) { // CHECK-NOT: Optional %1 = "tf.OptionalGetValue"(%arg0) : (tensor<!tf_type.variant<tensor<f32>>>) -> tensor<f32> return } // -----
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
infer_from_op); if (type_from_then.has_value()) return type_from_then; auto type_from_else = GetElementTypeFromAccess( else_branch.getArgument(use.getOperandNumber() - 1), module, infer_from_op); if (type_from_else.has_value()) return type_from_else; } else if (auto call = llvm::dyn_cast<CallOpInterface>(use.getOwner())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0)