Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for unit (0.16 sec)

  1. tensorflow/c/experimental/grappler/grappler_test.cc

        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);
    }
    
    TEST(Grappler, DeviceTypeNotSet) {
      auto plugin_init = [](TP_OptimizerRegistrationParams* const params,
    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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ParseGCSPath("gs://bucket/", false, &bucket, &object, status_);
      ASSERT_EQ(TF_GetCode(status_), TF_INVALID_ARGUMENT);
    }
    
    TEST_F(GCSFilesystemTest, RandomAccessFile) {
      tf_gcs_filesystem::Init(filesystem_, status_);
      ASSERT_TF_OK(status_) << "Could not initialize filesystem. "
                            << TF_Message(status_);
      std::string filepath = GetURIForPath("a_file");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      ops->filesystem_ops = static_cast<TF_FilesystemOps*>(
          plugin_memory_allocate(TF_FILESYSTEM_OPS_SIZE));
      ops->filesystem_ops->init = tf_posix_filesystem::Init;
      ops->filesystem_ops->cleanup = tf_posix_filesystem::Cleanup;
      ops->filesystem_ops->new_random_access_file =
          tf_posix_filesystem::NewRandomAccessFile;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

    #include "tensorflow/core/common_runtime/eager/context.h"
    #include "tensorflow/core/common_runtime/eager/eager_operation.h"
    #include "tensorflow/core/common_runtime/pluggable_device/pluggable_device_plugin_init.h"
    #include "tensorflow/core/distributed_runtime/rpc/grpc_server_lib.h"
    #include "tensorflow/core/framework/collective.h"
    #include "tensorflow/core/framework/node_def.pb.h"
    #include "tensorflow/core/framework/shape_inference.h"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_test.cc

      }
    }
    
    TEST_F(CApiAttributesTest, EmptyList) {
      auto desc = init("list(int)");
      TF_SetAttrIntList(desc, "v", nullptr, 0);
      auto oper = TF_FinishOperation(desc, s_);
      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TF_META("v", 0, TF_ATTR_INT, -1);
    }
    
    TEST_F(CApiAttributesTest, Names) {
      auto desc = init("string");
      TF_SetAttrString(desc, "v", "bunny", 5);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  6. tensorflow/c/eager/c_api_experimental_test.cc

      // Create two contexts.
      int32_t init_timeout_in_ms = 300000;
      TFE_Context* ctx_0 =
          CreateContext(serialized_server_def_0,
                        /*isolate_session_state=*/false, init_timeout_in_ms);
      TFE_Context* ctx_1 =
          CreateContext(serialized_server_def_1,
                        /*isolate_session_state=*/false, init_timeout_in_ms);
    
      // Remote device on `worker2`.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_test.cc

                                         /*isolate_session_state=*/false,
                                         /*init_timeout_in_ms=*/0);
      TFE_Context* ctx_1 = CreateContext(serialized_server_def_1,
                                         /*isolate_session_state=*/false,
                                         /*init_timeout_in_ms=*/0);
    
      // Remote device on `worker1`.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/grappler/grappler.cc

      TF_RETURN_IF_ERROR(
          env->GetSymbolFromLibrary(dso_handle, "TF_InitGraph", &dso_symbol));
    
      // Step 2: Call `TF_InitPlugin`
      auto init_fn = reinterpret_cast<TFInitGraphPluginFn>(dso_symbol);
      return InitGraphPlugin(init_fn);
    }
    
    absl::Status InitGraphPlugin(TFInitGraphPluginFn init_fn) {
      TP_OptimizerRegistrationParams params{
          TP_OPTIMIZER_REGISTRATION_PARAMS_STRUCT_SIZE};
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  9. tensorflow/c/env.cc

      return ::tensorflow::Env::Default()->NowNanos();
    }
    
    // Returns the number of microseconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void) {
      return ::tensorflow::Env::Default()->NowMicros();
    }
    
    // Returns the number of seconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void) {
      return ::tensorflow::Env::Default()->NowSeconds();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  10. tensorflow/c/eager/dlpack.cc

              return absl::OkStatus();
            case 64:
              *tf_dtype = TF_DataType::TF_UINT64;
              return absl::OkStatus();
            default:
              return tensorflow::errors::InvalidArgument("Unsupported UInt bits: ",
                                                         dtype.bits);
          }
          return absl::OkStatus();
        case DLDataTypeCode::kDLInt:
          switch (dtype.bits) {
            case 8:
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top