Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for str (0.12 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      ops_->copy_file(filesystem_.get(), translated_src.c_str(),
                      translated_target.c_str(), plugin_status.get());
      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());
    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)
  2. tensorflow/c/eager/c_api_unified_experimental_test.cc

          TF_NewStatus(), TF_DeleteStatus);
    
      // Start a new function / execution context.
      string fn_name = "double";
      TF_ExecutionContext* graph_ctx =
          TF_CreateFunction(fn_name.c_str(), status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      auto* placeholder_t =
          TF_AddFunctionParameter(graph_ctx, TF_FLOAT, {-1, nullptr}, status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental_test.cc

      auto* cell2 = TFE_MonitoringGetCellStringGauge2(gauge2, "foo", "bar");
      TFE_MonitoringStringGaugeCellSet(cell2, "str");
      auto* buf = new TF_Buffer;
      TFE_MonitoringStringGaugeCellValue(cell2, buf);
      string data(static_cast<const char*>(buf->data), buf->length);
      TF_DeleteBuffer(buf);
      EXPECT_EQ(data, "str");
      TFE_MonitoringDeleteStringGauge2(gauge2);
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, MonitoringSampler0) {
    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)
  4. tensorflow/c/experimental/gradients/math_grad.cc

        std::string name = "Conj_Exp_Grad";
        TF_RETURN_IF_ERROR(SafeConj(ctx, exp_.get(), &conj_output, name.c_str()));
        AbstractTensorHandlePtr conj_output_releaser(conj_output);
    
        name = "Mul_Exp_Grad";
        TF_RETURN_IF_ERROR(
            Mul(ctx, conj_output, grad_outputs[0], &grad_inputs[0], name.c_str()));
        return absl::OkStatus();
      }
      ~ExpGradientFunction() override {}
    
     private:
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        if (!metadata) {
          TF_SetStatusFromGCSStatus(metadata.status(), status);
          return;
        }
        TF_VLog(3, "AppendObject: gs://%s/%s to gs://%s/%s", bucket.c_str(),
                temporary_object.c_str(), bucket.c_str(), object.c_str());
        const std::vector<gcs::ComposeSourceObject> source_objects = {
            {object, {}, {}}, {temporary_object, {}, {}}};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental.cc

      for (const auto& op : op_names) {
        op_names_oss << op << ", ";
      }
      const std::string& op_names_str = op_names_oss.str();
      void* data = tensorflow::port::Malloc(op_names_str.length());
      op_names_str.copy(static_cast<char*>(data), op_names_str.length(), 0);
      buf->data = data;
      buf->length = op_names_str.length();
      buf->data_deallocator = [](void* data, size_t length) {
        tensorflow::port::Free(data);
      };
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  7. tensorflow/c/eager/c_api_test_util.cc

      TFE_OpSetAttrString(op, "tensor_name", "dummy", 5);
      TFE_OpSetAttrString(op, "send_device", send_device.c_str(),
                          send_device.size());
      TFE_OpSetAttrString(op, "recv_device", recv_device.c_str(),
                          recv_device.size());
      TFE_OpSetAttrInt(op, "send_device_incarnation", send_device_incarnation);
    
      return op;
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  8. 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;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  9. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        // this may not be consistent with python's naming policy.
        mutex_lock l(g_->mu);
        op_.reset(new TF_OperationDescription(g_, op_type_.c_str(),
                                              g_->graph.NewName(op_name).c_str()));
        return absl::OkStatus();
      }
      const string& Name() const override { return op_type_; }
      const string& DeviceName() const override { return device_name_; }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  10. tensorflow/c/eager/gradients.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/c/eager/gradients.h"
    
    #include "absl/strings/str_cat.h"
    #include "tensorflow/c/eager/abstract_tensor_handle.h"
    #include "tensorflow/c/eager/c_api_unified_experimental_internal.h"
    #include "tensorflow/c/eager/gradients_internal.h"
    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)
Back to top