Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 463 for int64Ptr (0.25 sec)

  1. tensorflow/c/experimental/gradients/nn_grad_test.cc

      ASSERT_EQ(errors::OK, status_.code()) << status_.message();
    
      auto ReluGradModel = BuildGradModel(ReluModel, registry_);
    
      float X_vals[] = {1.0f, 2.0f, 3.0f, -5.0f, -4.0f, -3.0f, 2.0f, 10.0f, -1.0f};
      int64_t X_dims[] = {3, 3};
      AbstractTensorHandlePtr X;
      {
        AbstractTensorHandle* X_raw;
        status_ = TestTensorHandleWithDims<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), X_vals, X_dims, 2, &X_raw);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

                        value_vec[1].AsInt64(), llvm::ArrayRef<int64_t>(vec1),
                        value_vec[3].AsInt64(), value_vec[4].AsInt64(),
                        llvm::ArrayRef<int64_t>(vec2), value_vec[6].AsInt64(),
                        value_vec[7].AsInt64(), llvm::ArrayRef<int64_t>(vec3));
                auto named_attr =
                    builder->getNamedAttr(key, conv_dimension_numbers_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

          requested_read_length = INT32_MAX;
        else
          requested_read_length = n;
    
        // `pread` returns a `ssize_t` on POSIX, but due to interface being
        // cross-platform, return type of `Read` is `int64_t`.
        int64_t r = int64_t{pread(posix_file->fd, dst, requested_read_length,
                                  static_cast<off_t>(offset))};
        if (r > 0) {
          dst += r;
          offset += static_cast<uint64_t>(r);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 20:08:23 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. tensorflow/c/eager/dlpack.cc

    }
    
    // Checks whether the stride array matches the layout of compact, row-majored
    // data.
    bool IsValidStrideCompactRowMajorData(int64_t* shape_arr, int64_t* stride_arr,
                                          int ndim) {
      bool valid = true;
      int64_t expected_stride = 1;
      for (int i = ndim - 1; i >= 0; --i) {
        // Empty tensors are always compact regardless of strides.
        if (shape_arr[i] == 0) return true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api.cc

      return num_dims;
    }
    
    int64_t TFE_TensorHandleNumElements(TFE_TensorHandle* h, TF_Status* status) {
      if (h == nullptr) {
        status->status = tensorflow::errors::InvalidArgument("Invalid handle");
        return -1;
      }
    
      int64_t num_elements = -1;
      status->status = tensorflow::unwrap(h)->NumElements(&num_elements);
      return num_elements;
    }
    
    int64_t TFE_TensorHandleDim(TFE_TensorHandle* h, int dim_index,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  6. tensorflow/compiler/aot/codegen_test_h.golden

        set_arg_data(1, data);
      }
      int64_t* arg1_data() {
        return static_cast<int64_t*>(arg_data(1));
      }
      int64_t& arg1(size_t dim0, size_t dim1) {
        return (*static_cast<int64_t(*)[3][4]>(
            arg_data(1)))[dim0][dim1];
      }
      const int64_t* arg1_data() const {
        return static_cast<const int64_t*>(arg_data(1));
      }
      const int64_t& arg1(size_t dim0, size_t dim1) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. tensorflow/c/eager/tfe_monitoring_internal.h

    };
    
    struct TFE_MonitoringIntGauge0 : TFE_MonitoringGauge<int64_t, 0> {
      using TFE_MonitoringGauge::TFE_MonitoringGauge;
    };
    struct TFE_MonitoringIntGauge1 : TFE_MonitoringGauge<int64_t, 1> {
      using TFE_MonitoringGauge::TFE_MonitoringGauge;
    };
    struct TFE_MonitoringIntGauge2 : TFE_MonitoringGauge<int64_t, 2> {
      using TFE_MonitoringGauge::TFE_MonitoringGauge;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h"
    
    namespace mlir::quant {
    namespace {
    
    void PackOperandTestHelper(
        const llvm::SmallVector<int64_t>& unpacked_shape,
        const llvm::SmallVector<int8_t>& unpacked_values, int pack_dim,
        const llvm::SmallVector<int64_t>& expected_packed_shape,
        const llvm::SmallVector<int8_t>& expected_packed_values) {
      MLIRContext context;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      auto* cc_agent = reinterpret_cast<tsl::CoordinationServiceAgent*>(agent);
      return cc_agent->IsInitialized();
    }
    
    void TF_CoordinationServiceInsertKeyValue(const char* key, int64_t key_size,
                                              const char* value, int64_t value_size,
                                              TF_CoordinationServiceAgent* agent,
                                              TF_Status* status) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

    llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4>
    AnnotateCompileOpAndGetExecuteArgToWhileArgsMapping(
        TF::WhileRegionOp while_op, tf_device::ReplicateOp replicate,
        TF::TPUExecuteAndUpdateVariablesOp execute,
        tf_device::LaunchOp compile_launch) {
      Region& body = while_op.getBody();
      Region& cond = while_op.getCond();
    
      llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4> mapping;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top