Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 3,758 for Dtype (0.14 sec)

  1. tensorflow/c/eager/custom_device_testutil.cc

      auto dtype = TFE_TensorHandleDataType(t->tensor);
      TFE_CustomDeviceTensorHandleMethods handle_methods;
      handle_methods.num_dims = &LoggedTensorNumDims;
      handle_methods.dim = &LoggedTensorDim;
      handle_methods.deallocator = &LoggedTensorDeallocator;
      return TFE_NewCustomDeviceTensorHandle(context, logging_device_name.c_str(),
                                             dtype, t.release(), handle_methods,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients.h

      void Watch(const AbstractTensorHandle*);
      // Records an operation with given inputs and outputs
      // on the tape and marks all its outputs as watched if at
      // least one input of the op is watched and has a trainable dtype.
      // op_name is optional and is used for debugging only.
      void RecordOperation(absl::Span<AbstractTensorHandle* const> inputs,
                           absl::Span<AbstractTensorHandle* const> outputs,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 10:27:05 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_tensor_handle.cc

      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(
        std::string& summary) const {
      Status status;
    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)
  4. tensorflow/c/c_test_util.h

        unique_tensor_ptr;
    
    TF_Tensor* BoolTensor(int32_t v);
    
    // Create a tensor with values of type TF_INT8 provided by `values`.
    TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values);
    
    // Create a tensor with values of type TF_INT32 provided by `values`.
    TF_Tensor* Int32Tensor(const int64_t* dims, int num_dims,
                           const int32_t* values);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_experimental.h

        TF_Status* status);
    
    // Information about the shape of a Tensor and its type.
    struct TF_ShapeAndType {
      // Number of dimensions. -1 indicates unknown rank.
      int num_dims;
      // Array of dimensions. -1 indicates unknown dim.
      int64_t* dims;
      // The data type. May be 0 to denote unknown type.
      TF_DataType dtype;
    };
    
    typedef struct TF_ShapeAndType TF_ShapeAndType;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_distributed_test.cc

          "      attr {"
          "        key: 'dtype'"
          "        value {"
          "          type: DT_FLOAT"
          "        }"
          "      }"
          "    }"
          "    node_def {"
          "      name: 'read1'"
          "      op: 'ReadVariableOp'"
          "      input: 'var'"
          "      device: '/job:localhost/replica:0/task:1/device:CPU:0'"
          "      attr {"
          "        key: 'dtype'"
          "        value {"
    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)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

            operation->SetOpName(absl::StrCat("_input_", inputs_.size()).c_str()));
        TF_RETURN_IF_ERROR(operation->SetAttrType("dtype", dtype));
        if (!shape.unknown_rank()) {
          TF_RETURN_IF_ERROR(operation->SetAttrShape(
              "shape", reinterpret_cast<int64_t*>(shape.dim_sizes().data()),
              shape.dims()));
        }
        int num_outputs = 1;
        std::vector<AbstractTensorHandle*> outputs(num_outputs);
    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)
  8. tensorflow/c/eager/parallel_device/parallel_device.h

    //
    // Implicit copies onto `device_name` are allowed, replicating the value once
    // per device in `underlying_devices`. Implicit copies off of the device throw
    // an error.
    //
    // All component tensors must have the same dtype. Currently they must also have
    // the same shape, although this requirement may be relaxed in the future.
    //
    // `device_name` must not name an existing physical or custom device (see
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jun 04 21:49:16 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler_test.cc

        TF_SetStatus(status, TF_OK, "");
        PopulateDefaultParam(params);
        params->device_type = "Device0";
      };
      auto plugin_init_1 = [](TP_OptimizerRegistrationParams* const params,
                              TF_Status* const status) -> void {
        TF_SetStatus(status, TF_OK, "");
        PopulateDefaultParam(params);
        params->device_type = "Device1";
      };
    
      TF_ASSERT_OK(InitGraphPlugin(plugin_init_0));
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

      auto* pjrt_c_api_client = dynamic_cast<xla::PjRtCApiClient*>(*pjrt_client);
      if (pjrt_c_api_client == nullptr) {
        return absl::InternalError(absl::StrCat("PjRtClient for ",
                                                device_type.type_string(),
                                                " is not type PjRtCApiClient"));
      }
      return pjrt_c_api_client;
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top