Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Hummer (0.17 sec)

  1. tensorflow/c/c_api.cc

            InvalidArgument("Node ", node->name(), " was not found in the graph");
        return -1;
      }
    
      tensorflow::shape_inference::ShapeHandle shape = ic->output(output.index);
    
      // Unknown rank means the number of dimensions is -1.
      if (!ic->RankKnown(shape)) {
        return -1;
      }
    
      return ic->Rank(shape);
    }
    
    void TF_GraphGetTensorShape(TF_Graph* graph, TF_Output output, int64_t* dims,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental.cc

      if (input_arg.number_attr().empty()) {
        status->status = tensorflow::errors::NotFound(
            op_name, " does not have number_attr() defined.");
        return nullptr;
      }
    
      // The returned string is owned by OpRegistry, so liveness is not a concern.
      return input_arg.number_attr().c_str();
    }
    
    int TF_OpIsStateful(const char* op_type, TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. tensorflow/c/env.cc

    TF_CAPI_EXPORT extern uint64_t TF_NowNanos(void) {
      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 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients.cc

        forward_op_->outputs.push_back(retvals[i]);
      }
      // TODO(b/166669239): This is needed to support AttrBuilder::Get for string
      // attributes. Number type attrs and DataType attrs work fine without this.
      // Consider getting rid of this and making the behavior between number types
      // and string consistent.
      forward_op_->attrs.BuildNodeDef();
      std::unique_ptr<GradientFunction> gradient_fn;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function.cc

    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/graph/graph.h"
    #include "tensorflow/core/platform/base64.h"
    #include "tensorflow/core/platform/strcat.h"
    #include "tensorflow/core/util/debug_data_dumper.h"
    
    using tensorflow::errors::InvalidArgument;
    
    namespace tensorflow {
    namespace {
    
    Status ValidateNonRefOutput(const Node* node, int idx) {
      const DataType& dt = node->output_type(idx);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  6. tensorflow/c/eager/gradient_checker.cc

          theta_inputs[input_index];  // parameter we are grad checking
    
      // Convert from AbstractTensor to TF_Tensor.
      TF_Tensor* theta_tensor;
      TF_RETURN_IF_ERROR(GetValue(theta, &theta_tensor));
    
      // Get number of elements and fill data.
      int num_elems = TF_TensorElementCount(theta_tensor);
      vector<float> theta_data(num_elems);
      memcpy(theta_data.data(), TF_TensorData(theta_tensor),
             TF_TensorByteSize(theta_tensor));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device.cc

    // reference counts drop to zero.
    void ParallelTensorDeallocator(void* data) {
      delete reinterpret_cast<ParallelTensor*>(data);
    }
    
    // Used as an argument to TFE_NewCustomDeviceTensorHandle, for computing the
    // number of dimensions of a parallel tensor.
    int ParallelTensorNumDims(void* data, TF_Status* status) {
      const std::vector<int64_t>* shape;
      Status s = reinterpret_cast<ParallelTensor*>(data)->Shape(&shape);
      if (!s.ok()) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_test.cc

            context.get(), components, device_name, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_INVALID_ARGUMENT)
            << TF_Message(status.get());
      }
    
      {
        // Try to extract the wrong number of components from a parallel tensor
        std::array<TFE_TensorHandle*, 1> correct_components{value_one.get()};
        TensorHandlePtr combined_value = CreatePerDeviceValues(
    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)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    constexpr uint64_t kDefaultMaxStaleness = 0;
    
    constexpr char kStatCacheMaxAge[] = "GCS_STAT_CACHE_MAX_AGE";
    constexpr uint64_t kStatCacheDefaultMaxAge = 5;
    // The environment variable that overrides the maximum number of entries in the
    // Stat cache.
    constexpr char kStatCacheMaxEntries[] = "GCS_STAT_CACHE_MAX_ENTRIES";
    constexpr size_t kStatCacheDefaultMaxEntries = 1024;
    
    // How to upload new data when Flush() is called multiple times.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

        const TF_FilesystemPluginInfo* info, int index) {
      TF_RETURN_IF_ERROR(ValidateScheme(info->ops[index].scheme));
      TF_RETURN_IF_ERROR(ValidateABI(&info->ops[index]));
      ValidateAPI(&info->ops[index]);  // we just warn on API number mismatch
      TF_RETURN_IF_ERROR(ValidateOperations(&info->ops[index]));
      TF_RETURN_IF_ERROR(RegisterFileSystem(info, index));
      return OkStatus();
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
Back to top