- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 42 for read_value (0.32 sec)
-
tensorflow/c/experimental/saved_model/core/ops/variable_ops_test.cc
&read_value_handle)); Status status; AbstractTensorPtr read_value(read_value_handle->Resolve(&status)); TF_EXPECT_OK(status); EXPECT_FLOAT_EQ(42.0, *static_cast<float*>(read_value->Data())); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 21 19:26:54 UTC 2020 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/aot/tests/make_test_graphs.py
x = variables.Variable(1.0, name='x') y = variables.Variable(1.0, name='y') updates = control_flow_ops.no_op() for _ in range(3): with ops.control_dependencies([updates]): x_val = x.read_value() + y updates = x.assign_sub(0.1 * x_val) array_ops.identity(updates, name='result') def write_graph(build_graph, out_dir): """Build a graph using build_graph and write it out."""
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 15 15:25:23 UTC 2023 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
} } ElementsAttr QuantizeLegacy(const Attribute real_value, const Type tensor_type) { if (!isa<DenseFPElementsAttr>(real_value) || !quant::QuantizedType::getQuantizedElementType(tensor_type)) { return {}; } const auto real_values_attr = cast<DenseFPElementsAttr>(real_value); auto q_type = quant::QuantizedType::getQuantizedElementType(tensor_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantizeUtils.h
/// converted type in outConvertedType. /// /// Examples: /// 1. realValue is a primitive value attribute: /// (realValue: FloatAttr, quantizedElementType: UniformQuantizedType[i8:f32]) /// -> (IntegerAttr, outConvertedType: i8) /// 2. realValue is an elements attribute: /// (realValue: DenseElementsAttr[tensor<2x2xf32>], /// quantizedElementType: UniformQuantizedType[i8:f32])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 29 18:55:28 UTC 2022 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantizeUtils.cc
quantizedElementType, converter); outConvertedType = converted.getType(); return converted; } if (mlir::isa<SparseElementsAttr>(realValue)) { // Sparse tensor or vector constant. auto converted = convertSparseElementsAttr(mlir::cast<SparseElementsAttr>(realValue), quantizedElementType, converter);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h
DenseElementsAttr GetScalarOfType(Type ty, T raw_value) { RankedTensorType scalar_ty = RankedTensorType::get({}, ty); if (auto float_ty = mlir::dyn_cast<FloatType>(ty)) { FloatAttr attr = FloatAttr::get(float_ty, raw_value); return DenseElementsAttr::get(scalar_ty, attr); } else if (auto int_ty = mlir::dyn_cast<IntegerType>(ty)) { IntegerAttr attr = IntegerAttr::get(int_ty, raw_value); return DenseElementsAttr::get(scalar_ty, attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 4K 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) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/provider/ClassLoaderHierarchyTest.kt
package org.gradle.kotlin.dsl.provider import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import com.fasterxml.jackson.module.kotlin.readValue import com.nhaarman.mockito_kotlin.doReturn import com.nhaarman.mockito_kotlin.mock import org.gradle.api.internal.initialization.AbstractClassLoaderScope import org.gradle.internal.classpath.ClassPath import org.gradle.internal.classpath.DefaultClassPath
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.7K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/fixture/PerformanceTestScenarioDefinitionVerifier.groovy
File oldFile = new File(args[0]) File newFile = new File(args[1]) PerformanceTestScenarioDefinition oldJson = new ObjectMapper().readValue(oldFile, PerformanceTestScenarioDefinition).sort() PerformanceTestScenarioDefinition newJson = new ObjectMapper().readValue(newFile, PerformanceTestScenarioDefinition).sort() if (oldJson != newJson) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.2K bytes - Viewed (0) -
test/fixedbugs/issue30908.dir/b.go
"./a" ) var G int // An inlinable function. To trigger the bug in question this needs // to be inlined here within the package and also inlined into some // other package that imports it. func ReadValues(data []byte) (vals map[string]interface{}, err error) { err = a.Unmarshal(data, &vals) if len(vals) == 0 { vals = map[string]interface{}{} } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 15:00:08 UTC 2019 - 876 bytes - Viewed (0)