Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for declTypes (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

    // attribute already exists with a different value, returns an error.
    template <typename ContainerT,
              typename = typename std::enable_if<
                  std::is_same<mlir::Type, decltype(*std::declval<ContainerT>()
                                                         .begin())>::value>::type>
    Status SetTypeAttribute(absl::string_view name, ContainerT types,
                            AttrValueMap* values) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      for (int device_index = 0; device_index < num_underlying_devices();
           ++device_index) {
        auto device_value = absl::make_unique<DataType>();
        *device_value = values[device_index];
        std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> tensor(
            TF_NewTensor(
                datatype_enum, /*dims=*/nullptr, /*num_dims=*/0,
                device_value.release(), sizeof(DataType),
                [](void* data, size_t, void* arg) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 25 15:21:13 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental_test.cc

      TFE_DeleteTensorHandle(m);
      TFE_DeleteContext(ctx);
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, TensorHandleNullptr) {
      TFE_TensorHandle* h = nullptr;
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
    
      const char* device_type = TFE_TensorHandleDeviceType(h, status.get());
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/common/schemas.go

    // if their schema is not exposed.
    //
    // The CEL declaration for objects with XPreserveUnknownFields does not expose unknown fields.
    func SchemaDeclType(s Schema, isResourceRoot bool) *apiservercel.DeclType {
    	if s == nil {
    		return nil
    	}
    	if s.IsXIntOrString() {
    		// schemas using XIntOrString are not required to have a type.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 18:00:45 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/libtf/object.h

    // the created lambda functor class.
    template <typename TLambda>
    class CallableWrapperUnpackArgs
        : public CallableWrapperUnpackArgs<decltype(&TLambda::operator())> {
     public:
      CallableWrapperUnpackArgs(TLambda fn, const char* name)
          : CallableWrapperUnpackArgs<decltype(&TLambda::operator())>(fn, name) {}
    };
    
    // This specialization unpacks the arguments from a normal function pointer.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      }
      // For LLVM style RTTI.
      static bool classof(const AbstractContext* ptr) {
        return ptr->getKind() == kGraph;
      }
    
     private:
      std::unique_ptr<TF_Graph, decltype(&TF_DeleteGraph)> graph_;
      std::vector<TF_Output> inputs_;
      string name_;
    };
    
    static TracingContext* GraphTracingFactory(const char* name, TF_Status* s) {
      return new GraphContext(name);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_cluster_test.cc

    }
    
    void CheckTFE_TensorHandleHasFloats(TFE_TensorHandle* handle,
                                        const std::vector<float>& expected_values) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
          TF_NewStatus(), TF_DeleteStatus);
      TF_Tensor* t = TFE_TensorHandleResolve(handle, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 10:03:59 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.cc

    // methods here, as part of making this class a singleton and the only way to
    // register/use filesystems.
    
    namespace tensorflow {
    
    using UniquePtrTo_TF_Status =
        ::std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)>;
    
    Status ModularFileSystem::NewRandomAccessFile(
        const std::string& fname, TransactionToken* token,
        std::unique_ptr<RandomAccessFile>* result) {
      if (ops_->new_random_access_file == nullptr)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                   expected_max_outputs, *default_cancellation_manager_);
      auto result = Join(expected_output_shapes, status);
      if (TF_GetCode(status) != TF_OK) {
        std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> await_status(
            TF_NewStatus(), TF_DeleteStatus);
        // Wait until all pending nodes have completed since they may have a
        // reference to default_cancellation_manager_. We ignore the status return
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 07:47:20 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/cc_op_gen_util.cc

              "char32_t",
              "class",
              "compl",
              "concept",
              "const",
              "const_cast",
              "constexpr",
              "continue",
              "decltype",
              "default",
              "delete",
              "do",
              "double",
              "dynamic_cast",
              "else",
              "enum",
              "explicit",
              "export",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
Back to top