Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for name (0.16 sec)

  1. tensorflow/c/c_api.cc

                            const char* value, size_t length) {
      tensorflow::NameAttrList func_name;
      func_name.set_name(string(value, value + length));
      desc->node_builder.Attr(attr_name, func_name);
    }
    
    void TF_SetAttrShape(TF_OperationDescription* desc, const char* attr_name,
                         const int64_t* dims, int num_dims) {
      PartialTensorShape shape;
      if (num_dims >= 0) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_unified_experimental.cc

    void RegisterTracingEngineFactory(const string& name, FactoryFunction factory) {
      assert((!GetFactories().count(name)) ||
             (GetFactories()[name] == factory) &&
                 "Duplicate tracing factory registration");
      GetFactories()[name] = factory;
    }
    
    Status SetDefaultTracingEngine(const char* name) {
      auto entry = GetFactories().find(name);
      if (entry != GetFactories().end()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/nn_grad.cc

        AbstractTensorHandle* upstream_grad = grad_outputs[0];
        AbstractTensorHandle* activations = forward_outputs_[0];
    
        // Calculate Grad
        std::string name = "relu_grad";
        TF_RETURN_IF_ERROR(ReluGrad(ctx, upstream_grad, activations,
                                    &grad_inputs[0], name.c_str()));
        return absl::OkStatus();
      }
      ~ReluGradientFunction() override {
        for (auto output : forward_outputs_) {
          if (output) {
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

      std::set<std::string> attr_names;
    };
    
    TF_AttrBuilder* TF_NewAttrBuilder(const char* op_name) {
      return new TF_AttrBuilder(op_name);
    }
    
    void TF_DeleteAttrBuilder(TF_AttrBuilder* builder) { delete builder; }
    
    void TF_AttrBuilderSetType(TF_AttrBuilder* builder, const char* attr_name,
                               TF_DataType value) {
      auto iter = builder->attr_names.insert(attr_name).first;
    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/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)
  6. tensorflow/c/c_api_function.cc

      // Process output names.
      std::vector<string> output_names_vec;
      if (output_names) {
        output_names_vec.reserve(noutputs);
        for (int i = 0; i < noutputs; ++i) {
          output_names_vec.push_back(string(output_names[i]));
        }
      }
    
      // Process control output names.
      std::vector<string> control_output_names_vec;
      if (control_output_names) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  7. tensorflow/c/eager/c_api_distributed_test.cc

      const char task0_name[] = "/job:localhost/replica:0/task:0/device:CPU:0";
      const char task1_name[] = "/job:localhost/replica:0/task:1/device:CPU:0";
      const char task2_name[] = "/job:localhost/replica:0/task:2/device:CPU:0";
    
      // Create one variable per task.
      TFE_TensorHandle* h0 = TestVariable(ctx, 1.0, task1_name);
      TFE_TensorHandle* h1 = TestVariable(ctx, 2.0, task2_name);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/next_pluggable_device/c_api.cc

          plugin_resource, plugin_resource_name, delete_func);
      auto cc_status =
          cc_ctx->resource_manager()->Create<tensorflow::PluginResource>(
              container_name, plugin_resource_name, cc_resource_ptr);
      status->status = cc_status;
    }
    
    void TF_LookupOrCreatePluginResource(
        TF_OpKernelContext* ctx, const char* container_name,
        const char* plugin_resource_name, void** result_plugin_resource,
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  9. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                underlying_devices_[component_index], underlying_devices_[0])) {
          // Device names are from different address spaces, or we can't figure out
          // whether they are, so we'll fully-qualify everything.
          return underlying_devices_;
        }
      }
      std::vector<std::string> local_names;
      local_names.reserve(underlying_devices_.size());
      for (const DeviceNameUtils::ParsedName& parsed_component :
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  10. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    std::string ModularFileSystem::TranslateName(const std::string& name) const {
      if (ops_->translate_name == nullptr) return FileSystem::TranslateName(name);
    
      char* p = ops_->translate_name(filesystem_.get(), name.c_str());
      CHECK(p != nullptr) << "TranslateName(" << name << ") returned nullptr";
    
      std::string ret(p);
      // Since `p` is allocated by plugin, free it using plugin's method.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
Back to top