Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 127 for as_str (0.2 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_to_string.cc

                                        std::istreambuf_iterator<char>()};
      }
    
      flatbuffers::Verifier model_verifier(
          reinterpret_cast<const uint8_t*>(serialized_model->c_str()),
          serialized_model->length());
      if (!model_verifier.VerifyBuffer<Model>()) {
        std::cerr << "Verification failed.\n";
        return true;
      }
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 15:52:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    	}) {
    		t.Errorf("got %v, wanted {'Test': 12u, 'Check': 34u}", mpStrUint)
    	}
    	tstStr, err := mv.ConvertToNative(reflect.TypeOf(&tstStruct{}))
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(tstStr, &tstStruct{
    		Test:  uint64(12),
    		Check: uint64(34),
    	}) {
    		t.Errorf("got %v, wanted tstStruct{Test: 12u, Check: 34u}", tstStr)
    	}
    }
    
    func TestMapValueEqual(t *testing.T) {
    	mv := NewMapValue()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  3. src/net/nss_test.go

    					"rpc": {
    						{source: "db"},
    						{source: "files"},
    					},
    					"netgroup": {
    						{source: "nis"},
    					},
    				},
    			},
    		},
    	}
    
    	for _, tt := range tests {
    		gotConf := nssStr(t, tt.in)
    		gotConf.mtime = time.Time{} // ignore mtime in comparison
    		if !reflect.DeepEqual(gotConf, tt.want) {
    			t.Errorf("%s: mismatch\n got %#v\nwant %#v", tt.name, gotConf, tt.want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:15:51 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    //===----------------------------------------------------------------------===//
    // String/variant/resource types (including corresponding reference types)
    
    def TF_Str : AnyTypeOf<
      [TF_TensorFlowType<"String", "str">, TF_StrRef], "string">;
    def TF_StrTensor : TensorOf<[TF_Str]>;
    
    def TF_Variant : AnyTypeOf<
      [TF_TensorFlowType<"Variant", "var">, TF_VariantRef], "variant">;
    def TF_VariantTensor : TensorOf<[TF_Variant]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    		fields := strings.Fields(line)
    		if len(fields) != 12 {
    			return funcInlHeur, nil, fmt.Errorf("malformed callsite (nf=%d) %s line %d: %s", len(fields), dr.p, dr.ln, line)
    		}
    		if fields[2] != "flagstr" || fields[4] != "flagval" || fields[6] != "score" || fields[8] != "mask" || fields[10] != "maskstr" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc

      auto module_op = module.get();
      auto serialized_result_fb = ExportRuntimeMetadata(module_op);
      const auto* result = GetRuntimeMetadata(serialized_result_fb.value().c_str());
      const auto* expected = GetRuntimeMetadata(kExpectedFB.c_str());
      ASSERT_TRUE(result != nullptr);
      ASSERT_TRUE(result->subgraph_metadata() != nullptr);
      ASSERT_TRUE(expected->subgraph_metadata() != nullptr);
      Verify(result, expected);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental_test.cc

          TF_NewStatus(), TF_DeleteStatus);
    
      // Start a new function / execution context.
      string fn_name = "double";
      TF_ExecutionContext* graph_ctx =
          TF_CreateFunction(fn_name.c_str(), status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      auto* placeholder_t =
          TF_AddFunctionParameter(graph_ctx, TF_FLOAT, {-1, nullptr}, status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 39.1K bytes
    - Viewed (0)
  8. tensorflow/cc/experimental/libtf/tests/mlir_transform_test.cc

          "tensorflow/cc/experimental/libtf/tests/testdata/simple-model");
    
      TF_ASSERT_OK_AND_ASSIGN(
          Object model_good,
          load.Call<Object>(mlir, String(model_good_path.c_str())));
    
      TF_ASSERT_OK_AND_ASSIGN(Callable to_string,
                              model_good.Get<Callable>(String("ToString")));
    
      TF_ASSERT_OK_AND_ASSIGN(String s, to_string.Call<String>(model_good));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 15 16:58:38 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/c/env.cc

    bool TF_StringStreamNext(TF_StringStream* list, const char** result) {
      if (list->position >= list->list->size()) {
        *result = nullptr;
        return false;
      }
    
      *result = list->list->at(list->position++).c_str();
      return true;
    }
    
    void TF_StringStreamDone(TF_StringStream* list) {
      delete list->list;
      delete list;
    }
    TF_StringStream* TF_GetChildren(const char* dirname, TF_Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/integration/node_expansion_pass.h

     private:
      // Whether to run this pass. If this is enabled, the NodeDef will be imported
      // to MLIR even no tf composition file is found.
      bool IsEnabled() {
        const char* tfr_lib_env_val = getenv(string(kTFRLibEnv).c_str());
        return tfr_lib_env_val != nullptr;
      }
    };
    
    }  // namespace tfr
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top