Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for flot (0.28 sec)

  1. tensorflow/c/c_api_test.cc

    TEST(CAPI, TestFromProto) {
      Tensor t_cc(DT_FLOAT, TensorShape({2, 3}));
      t_cc.flat<float>().setConstant(1.0);
      tensorflow::TensorProto t_proto;
      t_cc.AsProtoField(&t_proto);
    
      TF_Buffer* t_buffer = TF_NewBuffer();
      TF_CHECK_OK(MessageToBuffer(t_proto, t_buffer));
    
      const int num_bytes = 6 * sizeof(float);
      float* values =
          reinterpret_cast<float*>(tensorflow::cpu_allocator()->AllocateRaw(
    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/experimental/gradients/nn_grad_test.cc

      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);
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/array_grad_test.cc

        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), 1.0f, &x1_raw);
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
        x1.reset(x1_raw);
      }
    
      AbstractTensorHandlePtr x2;
      {
        AbstractTensorHandle* x2_raw = nullptr;
        status_ = TestScalarTensorHandle<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), 1.0f, &x2_raw);
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

                         float value) {
      desc->node_builder.Attr(attr_name, value);
    }
    
    void TF_SetAttrFloatList(TF_OperationDescription* desc, const char* attr_name,
                             const float* values, int num_values) {
      desc->node_builder.Attr(attr_name,
                              ArraySlice<const float>(values, num_values));
    }
    
    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)
  5. tensorflow/c/BUILD

            "//tensorflow/cc/saved_model:tag_constants",
            "//tensorflow/compiler/jit",
            "//tensorflow/core:array_ops_op_lib",
            "//tensorflow/core:bitwise_ops_op_lib",
            "//tensorflow/core:control_flow_ops_op_lib",
            "//tensorflow/core:core_cpu_internal",
            "//tensorflow/core:direct_session",
            "//tensorflow/core:framework",
            "//tensorflow/core:framework_internal",
    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)
  6. tensorflow/c/eager/unified_api_test.cc

        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        float data[] = {0., 0., 0., 0., 0., 0., 0., 0};
        int64_t dim_sizes[] = {2, 4};
        Status s = TestTensorHandleWithDims<float, TF_FLOAT>(ctx.get(), data,
                                                             dim_sizes, 2, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  7. tensorflow/c/eager/unified_api_testutil.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/c/eager/unified_api_testutil.h"
    
    #include "absl/container/flat_hash_set.h"
    #include "tensorflow/c/eager/c_api_experimental.h"
    #include "tensorflow/c/eager/c_api_test_util.h"
    #include "tensorflow/c/eager/c_api_unified_experimental.h"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/BUILD

            ":tape",
            "//tensorflow/core/common_runtime/eager:attr_builder",
            "//tensorflow/core/lib/llvm_rtti",
            "//tensorflow/core/platform:errors",
            "@com_google_absl//absl/container:flat_hash_map",
            "@com_google_absl//absl/strings",
        ],
    )
    
    cc_library(
        name = "unified_api_testutil",
        testonly = 1,
        srcs = [
            "unified_api_testutil.cc",
        ],
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 33.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_unified_experimental_graph.cc

          op_->node_builder.Attr(attr_name, v);
        }
        return absl::OkStatus();
      }
      Status SetAttrFloatList(const char* attr_name, const float* values,
                              int num_values) override {
        op_->node_builder.Attr(attr_name,
                               ArraySlice<const float>(values, num_values));
        return absl::OkStatus();
      }
      Status SetAttrIntList(const char* attr_name, const int64_t* values,
    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. RELEASE.md

    *   EagerTensor now supports numpy buffer interface for tensors.
    *   Add toggles `tf.enable_control_flow_v2()` and `tf.disable_control_flow_v2()`
        for enabling/disabling v2 control flow.
    *   Enable v2 control flow as part of `tf.enable_v2_behavior()` and
        `TF2_BEHAVIOR=1`.
    *   AutoGraph translates Python control flow into TensorFlow expressions,
        allowing users to write regular Python inside `tf.function`-decorated
    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)
Back to top