Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for value_or (0.24 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.cc

      if (is_float) {
        mhlo::OrOp value_or = llvm::dyn_cast_or_null<mhlo::OrOp>(
            value_select.getOperand(0).getDefiningOp());
        if (!value_or) return failure();
    
        mhlo::CompareOp value_gt = llvm::dyn_cast_or_null<mhlo::CompareOp>(
            value_or.getLhs().getDefiningOp());
        if (!value_gt || value_gt.getComparisonDirection() != compare_direction ||
            value_gt.getLhs() != body.getArgument(0) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 20:53:17 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/reader.cc

          io::JoinPath(export_dir, kSavedModelFilenamePbTxt);
      auto saved_model_pbtxt_exists =
          internal::FileExists(Env::Default(), saved_model_pbtxt_path);
      if (saved_model_pbtxt_exists.value_or(false)) {
        Status result = ReadTextProto(Env::Default(), saved_model_pbtxt_path,
                                      saved_model_proto);
        if (result.ok()) {
          metrics::SavedModelReadCount(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 00:19:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/metrics_test.cc

      SavedModelWritePathAndSingleprint().Set("bar");
      EXPECT_EQ(SavedModelWritePathAndSingleprint().value(), "bar");
    
      EXPECT_EQ(
          MakeSavedModelPathAndSingleprint("path", "singleprint").value_or(""),
          "path:singleprint");
    }
    
    TEST(MetricsTest, TestInvalidMakePathAndSingleprint) {
      EXPECT_THAT(MakeSavedModelPathAndSingleprint("", "singleprint"),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/image_format/internal_api.cc

      const std::string saved_model_pbtxt_path =
          absl::StrCat(file_prefix, ".pbtxt");
      auto saved_model_pbtxt_exists =
          internal::FileExists(Env::Default(), saved_model_pbtxt_path);
      if (saved_model_pbtxt_exists.value_or(false)) {
        absl::Status result = ReadTextProto(Env::Default(), saved_model_pbtxt_path,
                                            saved_model_proto);
        if (result.ok()) {
          metrics::SavedModelReadCount(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 30 21:50:27 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/quantize_variables.cc

        auto assign_variable_op =
            dyn_cast_or_null<AssignVariableOp>(var_handle_user);
        if (!assign_variable_op) continue;
        auto value_op = assign_variable_op.getValue().getDefiningOp();
        auto dq_op = dyn_cast_or_null<DequantizeOp>(value_op);
        if (!dq_op || ref_qtype) continue;
        ref_qtype = dq_op.getInput().getType();
      }
      return ref_qtype;
    }
    
    class QuantizeVariablesPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. tensorflow/c/tf_status_helper.cc

      status.ForEachPayload(
          [tf_status](absl::string_view key, const absl::Cord& value) {
            std::string key_str(key);
            std::string value_str(value);
            TF_SetPayload(tf_status, key_str.c_str(), value_str.c_str());
          });
    }
    
    absl::Status StatusFromTF_Status(const TF_Status* tf_status) {
      absl::Status status(StatusCodeFromTSLCode(TF_GetCode(tf_status)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/go/types/errorcalls_test.go

    					if s, err := strconv.Unquote(lit.Value); err == nil {
    						if !balancedParentheses(s) {
    							t.Errorf("%s: unbalanced parentheses/brackets", fset.Position(lit.ValuePos))
    						}
    					}
    					return false
    				}
    				return true
    			})
    			return false
    		})
    	}
    }
    
    func isName(n ast.Node, name string) bool {
    	if n, ok := n.(*ast.Ident); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. src/reflect/iter_test.go

    		val   Value
    		check func(*testing.T, iter.Seq[Value])
    	}{
    		{"int", ValueOf(4), func(t *testing.T, s iter.Seq[Value]) {
    			i := int64(0)
    			for v := range s {
    				if v.Int() != i {
    					t.Fatalf("got %d, want %d", v.Int(), i)
    				}
    				i++
    			}
    			if i != 4 {
    				t.Fatalf("should loop four times")
    			}
    		}},
    		{"int8", ValueOf(int8(4)), func(t *testing.T, s iter.Seq[Value]) {
    			i := int8(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. src/reflect/iter.go

    			v = v.Elem()
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case Array, Slice:
    		return func(yield func(Value) bool) {
    			for i := range v.Len() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case String:
    		return func(yield func(Value) bool) {
    			for i := range v.String() {
    				if !yield(ValueOf(i)) {
    					return
    				}
    			}
    		}
    	case Map:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/util/MemoryUtil.java

            } else if (size.divide(ONE_TB_BI).compareTo(BigInteger.ZERO) > 0) {
                displaySize = new BigDecimal(size.divide(ONE_GB_BI)).divide(BigDecimal.valueOf(1000)) + "TB";
            } else if (size.divide(ONE_GB_BI).compareTo(BigInteger.ZERO) > 0) {
                displaySize = new BigDecimal(size.divide(ONE_MB_BI)).divide(BigDecimal.valueOf(1000)) + "GB";
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top