Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TF_ASSERT_OK (0.4 sec)

  1. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      auto status = pjrt::PjrtApi(DEVICE_CPU);
      if (!status.ok()) {
        TF_ASSERT_OK(pjrt::SetPjrtApi(DEVICE_CPU, GetPjrtApi()));
      }
      TF_ASSERT_OK_AND_ASSIGN(auto pjrt_client, xla::GetCApiClient(DEVICE_CPU));
      TF_ASSERT_OK(SetPjRtClientInTFGlobalResourceManager(DEVICE_CPU,
                                                          std::move(pjrt_client)));
    
      TF_ASSERT_OK_AND_ASSIGN(
          auto pjrt_client_get,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/grappler/grappler_test.cc

                              TF_Status* const status) -> void {
        TF_SetStatus(status, TF_OK, "");
        PopulateDefaultParam(params);
        params->device_type = "Device1";
      };
    
      TF_ASSERT_OK(InitGraphPlugin(plugin_init_0));
      TF_ASSERT_OK(InitGraphPlugin(plugin_init_1));
      ASSERT_EQ(PluginGraphOptimizerRegistry::CreateOptimizers(
                    std::set<string>{"Device0", "Device1"})
                    .size(),
                2);
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

                {"instance_key", 0},
                {"merge_op", "Add"},
                {"final_op", "Id"},
                {"subdiv_offsets", std::vector<int>()}},
               /*dep=*/{"assert"}},
          });
      TF_ASSERT_OK(ContextFromInterface(unwrap(context.get()))
                       ->AddFunctionDef(assert_and_collective));
    
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> call_op(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      ImmediateExecutionTensorHandle* unwrapped_handle =
          tensorflow::unwrap(device_value.get());
      std::string summarized;
      TF_ASSERT_OK(unwrapped_handle->SummarizeValue(summarized));
      EXPECT_THAT(summarized, HasSubstr("\"CPU:0\": 3"));
    }
    
    }  // namespace parallel_device
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  5. tensorflow/c/c_api_test.cc

      TF_Graph* graph = TF_NewGraph();
      TF_Buffer* buffer = TF_NewBuffer();
    
      TF_GraphGetOpDef(graph, "Add", buffer, status);
      ASSERT_EQ(TF_OK, TF_GetCode(status));
      const OpDef* expected_op_def;
      TF_ASSERT_OK(OpRegistry::Global()->LookUpOpDef("Add", &expected_op_def));
      string expected_serialized;
      expected_op_def->SerializeToString(&expected_serialized);
      string actual_string(reinterpret_cast<const char*>(buffer->data),
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  6. RELEASE.md

        graph optimizer options are now specified via
        `GraphOptions.OptimizerOptions`.
    *   `ASSERT_OK` / `EXPECT_OK` macros conflicted with external projects, so they
        were renamed `TF_ASSERT_OK`, `TF_EXPECT_OK`. The existing macros are
        currently maintained for short-term compatibility but will be removed.
    *   The non-public `nn.rnn` and the various `nn.seq2seq` methods now return just
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Apr 03 20:27:38 GMT 2024
    - 727.4K bytes
    - Viewed (8)
Back to top