Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 127 for as_str (0.22 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util_test.cc

    TEST(DumpMlirModuleTest, Valid) {
      mlir::MLIRContext context;
      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
      setenv("TF_DUMP_GRAPH_PREFIX", testing::TmpDir().c_str(), 1);
      std::string expected_txt_module;
      {
        llvm::raw_string_ostream os(expected_txt_module);
        module_ref->getOperation()->print(os,
                                          mlir::OpPrintingFlags().useLocalScope());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 18 13:40:21 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/grappler/grappler_test.cc

          TF_GetInputPropertiesListSize(graph_properties, node.name().c_str(),
                                        &num_values, status);
          EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
          EXPECT_EQ(num_values, 1);
    
          std::vector<TF_Buffer*> in_props_buf(num_values, TF_NewBuffer());
    
          TF_GetInputPropertiesList(graph_properties, node.name().c_str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 22:30:58 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

      TFE_DeleteContextOptions(opts);
    
      std::string model_dir = SavedModelPath("VarsAndArithmeticObjectGraph");
    
      TF_SavedModel* saved_model =
          TF_LoadSavedModelWithTags(model_dir.c_str(), ctx, kServeTag, 1, status);
    
      // TODO(bmzhao): Change this to expect TF_OK when loading is implemented.
      // That unblocks writing other tests that require a TF_SavedModel*,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_unified_experimental_eager.cc

      auto handle = dyn_cast<ImmediateExecutionTensorHandle>(unwrap(at));
      if (!handle) {
        string msg =
            StrCat("Not an eager tensor handle.", reinterpret_cast<uintptr_t>(at));
        TF_SetStatus(s, TF_INVALID_ARGUMENT, msg.c_str());
        return nullptr;
      }
      return wrap(handle);
    }
    
    TFE_Context* TF_ExecutionContextGetTFEContext(TF_ExecutionContext* ctx,
                                                  TF_Status* s) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 25 04:40:46 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental_test.cc

          value: "localhost:1"
        }
      }
    }
    job_name: "worker"
    task_index: 1
    protocol: "grpc"
    )");
    
      TF_Status* status = TF_NewStatus();
      TF_Buffer* result = TFE_GetServerDef(expected_text_proto.c_str(), status);
      EXPECT_EQ(TF_GetCode(status), TF_OK);
    
      ServerDef actual;
      ASSERT_TRUE(actual.ParseFromArray(result->data, result->length));
      string actual_text_proto;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/custom_device_testutil.cc

      handle_methods.num_dims = &LoggedTensorNumDims;
      handle_methods.dim = &LoggedTensorDim;
      handle_methods.deallocator = &LoggedTensorDeallocator;
      return TFE_NewCustomDeviceTensorHandle(context, logging_device_name.c_str(),
                                             dtype, t.release(), handle_methods,
                                             status);
    }
    
    TFE_TensorHandle* CopyToLoggingDevice(TFE_Context* context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 03 20:47:31 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/ops/bitcast.cc

        std::ostringstream err;
        err << "Cannot bitcast type " << input_type << " to " << output_type
            << " because one of the type sizes is zero";
        TF_SetStatus(status, TF_INVALID_ARGUMENT, err.str().c_str());
        return;
      }
    
      TF_SetStatus(status, TF_OK, "");
      if (input_type_size < output_type_size) {
        TF_ShapeInferenceContextWithRankAtLeast(ctx, shape, 1, shape, status);
    
        if (TF_GetCode(status) == TF_OK) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 07:51:50 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h

      const char* file_name() const {
        return file_name_.empty() ? NULL : file_name_.c_str();
      }
    
      // Gets the line in the source file where the test part took place,
      // or -1 if it's unknown.
      int line_number() const { return line_number_; }
    
      // Gets the summary of the failure message.
      const char* summary() const { return summary_.c_str(); }
    
      // Gets the message associated with the test part.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h

      const char* file_name() const {
        return file_name_.empty() ? NULL : file_name_.c_str();
      }
    
      // Gets the line in the source file where the test part took place,
      // or -1 if it's unknown.
      int line_number() const { return line_number_; }
    
      // Gets the summary of the failure message.
      const char* summary() const { return summary_.c_str(); }
    
      // Gets the message associated with the test part.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. tensorflow/c/kernels/summary_op.cc

            << tensorflow::ShapeDebugString(params.tags)
            << " != " << tensorflow::ShapeDebugString(params.values)
            << SingleTag(params.tags);
        TF_SetStatus(params.status, TF_INVALID_ARGUMENT, err.str().c_str());
        TF_OpKernelContext_Failure(ctx, params.status);
        return;
      }
      // Convert tags and values tensor to array to access elements by index
      tensorflow::Summary s;
      auto tags_array =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top