Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Resource (0.17 sec)

  1. tensorflow/c/c_api_test.cc

        TF_TString_Init(&data[i]);
        // The following input string length is large enough to make sure that
        // copy to tstring in large mode.
        std::string source =
            "This is the " + std::to_string(i + 1) + "th. data element\n";
        TF_TString_Copy(&data[i], source.c_str(), source.length());
      }
    
      TF_DeleteTensor(t);
    }
    
    }  // namespace
    }  // namespace tensorflow
    
    // TODO(josh11b): Test:
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  2. tensorflow/c/c_api.cc

        *dst = tensorflow::Tensor(tensorflow::DT_RESOURCE, dst->shape());
        if (!dst->scalar<tensorflow::ResourceHandle>()().ParseFromString(
                string(static_cast<const char*>(tensor_interface->Data()),
                       tensor_interface->ByteSize()))) {
          return InvalidArgument(
              "Malformed TF_RESOURCE tensor: unable to parse resource handle");
        }
        return absl::OkStatus();
      }
      return absl::OkStatus();
    }
    
    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)
  3. tensorflow/c/c_api_experimental.cc

                         TF_ShapeAndTypeList* input_tensors_as_shapes,
                         TF_ShapeAndTypeList** input_resource_shapes_and_types,
                         TF_ShapeAndTypeList** output_shapes,
                         TF_ShapeAndTypeList*** output_resource_shapes_and_types,
                         TF_Status* status) {
      using tensorflow::NodeDef;
      using tensorflow::OpRegistrationData;
    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)
  4. tensorflow/c/BUILD

            "//tensorflow/core:test_main",
            "//tensorflow/core/kernels:array",
            "//tensorflow/core/kernels:control_flow_ops",
            "//tensorflow/core/kernels:math",
            "//tensorflow/core/platform:resource_loader",
        ],
    )
    
    tf_cc_test(
        name = "c_api_experimental_test",
        size = "medium",
        srcs = ["c_api_experimental_test.cc"],
        data = [
            "testdata/tf_record",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 18:00:18 GMT 2024
    - 30.3K bytes
    - Viewed (0)
  5. RELEASE.md

            `tf.lookup.StaticHashTable.__init__` to create the table in anonymous
            mode. In this mode, the table resource can only be accessed via resource
            handles (not resource names) and will be deleted automatically when all
            resource handles pointing to it are gone.
    *   `tf.data`:
        *   Introduce the `tf.data.experimental.at` API which provides random access
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
  6. tensorflow/c/eager/tape.h

            // the tape, so no gradient needs to be computed from it unless this
            // target is also a source.
            auto source_tensor = sources_that_are_targets.find(id);
            if (source_tensor != sources_that_are_targets.end()) {
              Gradient* ones_like = nullptr;
              TF_RETURN_IF_ERROR(
                  vspace.BuildOnesLike(source_tensor->second, &ones_like));
              (*result)[id].push_back(ones_like);
            }
          }
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  7. ci/official/wheel.sh

    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    source "${BASH_SOURCE%/*}/utilities/setup.sh"
    
    # Record GPU count and CUDA version status
    if [[ "$TFCI_NVIDIA_SMI_ENABLE" == 1 ]]; then
      tfrun nvidia-smi
    fi
    
    # Update the version numbers for Nightly only
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 06 21:54:13 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_experimental.cc

                     std::string(result.error_message()).data());
        if (TF_GetCode(&s) != TF_Code::TF_OK) {
          tensorflow::CoordinationServiceError error;
          *error.mutable_source_task() = result.error_payload().source_task();
          TF_SetPayload(&s, tensorflow::CoordinationErrorPayloadKey().data(),
                        error.SerializeAsString().c_str());
        }
        *state_iter = std::move(s);
        ++state_iter;
    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)
  9. tensorflow/BUILD

    selects.config_setting_group(
        name = "is_cuda_enabled_and_windows",
        match_all = [
            ":is_cuda_enabled",
            ":windows",
        ],
    )
    
    # Config setting to use in select()s to distinguish open source build from
    # google internal build on configurable attributes.
    #
    # For non-configurable distinction between OSS and Google builds, see
    # `if_oss()` and `if_google()` macros in tensorflow.bzl.
    config_setting(
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 09 18:15:11 GMT 2024
    - 53.4K bytes
    - Viewed (8)
  10. ci/official/envs/linux_x86_tpu

    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    source ci/official/envs/linux_x86
    TFCI_BAZEL_COMMON_ARGS="--repo_env=TF_PYTHON_VERSION=$TFCI_PYTHON_VERSION --config release_cpu_linux --config=tpu"
    TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX=linux_tpu
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 21:16:27 GMT 2024
    - 1.2K bytes
    - Viewed (0)
Back to top