Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for name (0.13 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      } else {
        *entries = static_cast<char**>(
            plugin_memory_allocate(num_entries * sizeof((*entries)[0])));
        for (int i = 0; i < num_entries; i++) {
          (*entries)[i] = strdup(dir_entries[i]->d_name);
          plugin_memory_free(dir_entries[i]);
        }
        plugin_memory_free(dir_entries);
      }
    
      return num_entries;
    }
    
    }  // namespace tf_posix_filesystem
    
    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)
  2. tensorflow/c/eager/c_api_experimental_reader_test.cc

      auto* reader = TFE_MonitoringNewCounterReader(counter_name);
      IncrementCounter1(counter, label_name);
    
      int64_t actual = TFE_MonitoringReadCounter1(reader, label_name);
    
      CHECK_EQ(actual, 1);
    }
    
    TFE_MonitoringCounter0* CreateCounter0(const char* counter_name) {
      TF_Status* status = TF_NewStatus();
      auto* counter =
          TFE_MonitoringNewCounter0(counter_name, status, "description");
      TF_DeleteStatus(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/gradients.cc

      return op_->SetAttrInt(attr_name, value);
    }
    Status SetAttrFloat(AbstractOperation* op_, const char* attr_name, float value,
                        ForwardOperation* forward_op_) {
      forward_op_->attrs.Set(attr_name, value);
      return op_->SetAttrFloat(attr_name, value);
    }
    Status SetAttrBool(AbstractOperation* op_, const char* attr_name, bool value,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_test_util.cc

                              const char* name) {
      unique_tensor_ptr tensor(BoolTensor(v), TF_DeleteTensor);
      return Const(tensor.get(), graph, s, name);
    }
    
    TF_Operation* ScalarConst(int32_t v, TF_Graph* graph, TF_Status* s,
                              const char* name) {
      unique_tensor_ptr tensor(Int32Tensor(v), TF_DeleteTensor);
      return Const(tensor.get(), graph, s, name);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  5. tensorflow/c/eager/custom_device_test.cc

          << TF_Message(status.get());
    
      const char* name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      RegisterLoggingDevice(context.get(), name, /*strict_scope_placement=*/true,
                            &arrived, &executed, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      RegisterLoggingDevice(context.get(), name, /*strict_scope_placement=*/true,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/grappler/grappler.cc

      } while (0)
    
    #define VALIDATE_MEMBER(STRUCT_NAME, STRUCT_OBJ, NAME)           \
      do {                                                           \
        if (STRUCT_OBJ.NAME == 0) {                                  \
          return absl::Status(absl::StatusCode::kFailedPrecondition, \
                              "'" #NAME "' field in " #STRUCT_NAME   \
                              " must be set.");                      \
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  7. tensorflow/c/eager/immediate_execution_tensor_handle.cc

      }
      Status s;
      const char* device_name = DeviceName(&s);
      if (!s.ok()) {
        device_name = "<error fetching device name>";
      }
      return absl::StrCat("TensorHandle(", value_string, ", shape=", shape_string,
                          ", dtype=", DataType_Name(DataType()), ", device=\"",
                          device_name, "\")");
    }
    
    Status ImmediateExecutionTensorHandle::SummarizeValue(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  8. tensorflow/c/eager/dlpack.cc

      tensorflow::DeviceNameUtils::ParseFullName(device_name, &parsed_name);
      std::string device_type = parsed_name.type;
      int device_id = 0;
      if (parsed_name.has_id) {
        device_id = parsed_name.id;
      }
    
      ctx.device_id = device_id;
      if (device_type == "CPU") {
        ctx.device_type = DLDeviceType::kDLCPU;
      } else if (device_type == "GPU") {
    #if TENSORFLOW_USE_ROCM
    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)
  9. tensorflow/c/env.cc

                              const char* thread_name, void (*work_func)(void*),
                              void* param) {
      ::tensorflow::ThreadOptions cc_options;
      cc_options.stack_size = options->stack_size;
      cc_options.guard_size = options->guard_size;
      cc_options.numa_node = options->numa_node;
      return reinterpret_cast<TF_Thread*>(::tensorflow::Env::Default()->StartThread(
          cc_options, thread_name, [=]() { (*work_func)(param); }));
    }
    
    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/parallel_device/parallel_device.cc

    // no device name (e.g. for `tf.device`). `NamedParallelDevice` associates a
    // name with it, which lets us pack its `ParallelTensor`s into TFE_TensorHandles
    // placed on the parallel device.
    class NamedParallelDevice {
     public:
      NamedParallelDevice(const std::string& name,
                          std::unique_ptr<ParallelDevice> parallel_device)
          : device_name_(name), parallel_device_(std::move(parallel_device)) {}
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
Back to top