- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 171 for res_value (0.19 sec)
-
tensorflow/compiler/aot/tests/make_test_graphs.py
def tfvariable_readonly(_): x = variables.Variable(1000.0, name='x') unused_y = variables.Variable(1000.0, name='y') old_x = x.value() with ops.control_dependencies([old_x]): new_value = math_ops.add(old_x, 42.0) array_ops.identity(new_value, name='result') # TODO(b/147908587): Change x and the two constants back to have a scalar shape # when the bug is fixed. def tfvariable(_):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 15 15:25:23 UTC 2023 - 7.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/value_test.go
} } func TestListValueContainsNestedList(t *testing.T) { lvA := NewListValue() lvA.Append(testValue(t, 1, int64(1))) lvA.Append(testValue(t, 2, int64(2))) lvB := NewListValue() lvB.Append(testValue(t, 3, int64(3))) elemA, elemB := testValue(t, 4, lvA), testValue(t, 5, lvB) lv := NewListValue() lv.Append(elemA) lv.Append(elemB) contained := lv.Contains(elemA.ExprValue())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_test.cc
EXPECT_TRUE(statistics.has_value()); EXPECT_EQ(statistics.value().min_max_statistics().global_min(), -5.0f); EXPECT_EQ(statistics.value().min_max_statistics().global_max(), 10.0f); collector.ClearData(); statistics = collector.GetStatistics(); EXPECT_FALSE(statistics.has_value()); collector.Collect( /*min=*/1.0f, /*max=*/10.f, /*histogram=*/{});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 16 04:33:52 UTC 2024 - 12.6K 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/jvm/language-java/src/test/groovy/org/gradle/external/javadoc/internal/FileJavadocOptionFileOptionTest.groovy
} def testWriteNonNullValue() throws IOException { final File testValue = new File("dummyTestFileValue") fileOption.setValue(testValue) when: fileOption.write(writerContextMock) then: 1 * writerContextMock.writeValueOption(optionName, testValue.absolutePath) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Aug 28 11:40:18 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.h
auto op_func_attr_array = op.getOpFuncAttrs().getValue(); for (auto op_attr : op_func_attr_array) { auto key_value = mlir::dyn_cast<mlir::ArrayAttr>(op_attr); if (!key_value || key_value.getValue().size() != 2 || !mlir::isa<mlir::StringAttr>(key_value.getValue()[0]) || !mlir::isa<mlir::StringAttr>(key_value.getValue()[1])) return op.emitOpError() << "each op_func_attr should be a key-value "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.5K 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) -
plugin/pkg/admission/podtolerationrestriction/admission_test.go
namespaceTolerations: []api.Toleration{}, podTolerations: []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue", Effect: "NoSchedule", TolerationSeconds: nil}}, mergedTolerations: []api.Toleration{{Key: "testKey", Operator: "Equal", Value: "testValue", Effect: "NoSchedule", TolerationSeconds: nil}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 16K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc
assert(op_attrs); op_attrs->clear(); mlir::Builder builder(context); for (auto iter : op_attr_array) { auto key_value = mlir::cast<mlir::ArrayAttr>(iter).getValue(); llvm::StringRef key = mlir::cast<mlir::StringAttr>(key_value[0]).getValue(); mlir::Attribute value = key_value[1]; op_attrs->push_back({key, value}); } } mlir::ParseResult ParseExecuteOpCommon(mlir::OpAsmParser &parser,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
statement.go
destValue := reflect.ValueOf(stmt.Dest) for destValue.Kind() == reflect.Ptr { destValue = destValue.Elem() } if stmt.ReflectValue != destValue { if !destValue.CanAddr() { destValueCanAddr := reflect.New(destValue.Type()) destValueCanAddr.Elem().Set(destValue) stmt.Dest = destValueCanAddr.Interface() destValue = destValueCanAddr.Elem() }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Jan 12 08:42:21 UTC 2024 - 19.8K bytes - Viewed (0)