Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 337 for TensorT (0.14 sec)

  1. tensorflow/compiler/jit/xla_device_context.cc

      // pointer. We can return an empty object and ignore num_bytes here because we
      // have control over all of the uses of this device tensor, and can lazily
      // allocate memory when used. This allows us to also know the shape of the
      // allocated Tensor, which is useful if the device's tensor representation
      // differs from the host.
      return XlaTensor::ToOpaquePointer(new XlaTensor());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

    }
    
    LogicalResult VerifyWhitespaceTokenizer(func::FuncOp func) {
      // In the case of input tensor with 0 rank.
      // Whitespace tokenizer generates 1 output:
      // * String tensor for tokens.
      //
      // In the case of 1-D input tensor,
      // Whitespace tokenizer generates 2 outputs to make up a ragged tensor:
      // * 1st output is the value of ragged tensor;
      // * 2nd output is the offset.
      //
      // In the case of batched input tesnor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        }
      }
    
      // Verify the argument order: tensors, tensor list, attributes; and also
      // verify there is at most one tensor list argument.
      if (first_attr != -1 &&
          (first_attr < last_tensor_list || first_attr < last_tensor)) {
        func.emitError(
            "tfr.tensor/tfr.tensor_list argument should be before non tensor "
            "arguments.");
        return failure();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  4. tensorflow/cc/tools/freeze_saved_model.cc

    namespace tensorflow {
    
    namespace {
    
    // Gets tensor names from tensor_info and inserts them into the set of tensor
    // names.
    void GetTensorNamesFromTensorInfo(const TensorInfo& tensor_info,
                                      std::unordered_set<string>* tensor_names) {
      if (tensor_info.has_coo_sparse()) {
        // If the tensor is sparse we have to add all three tensors of the sparse
        // representations.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

          }
        }
    
        // Special type fixes for scalar tensor types.
        // TFLite flatbuffer schema doesn't distinguish scalar tensor shapes
        // and unranked tensor shapes (i.e. they are both represented as an empty
        // INT32 list), see b/138865275. MLIR importer conservatively treats them as
        // unranked tensor types. Here we set them to scalar tensor types when it is
        // safe.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TFE_DeleteContextOptions(opts);
    
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      /* Want to test simple MatMul example with abstract tensors:
        [[1,2],   *  [[5,6],   =   [[19,22],
         [3,4]]       [7,8]]        [43,50]]
      */
    
      // Build 1st Matrix.
      int64_t dims[] = {2, 2};  // Matrices will be 2 x 2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 39.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_per_channel.pbtxt

    }
    
    # MLIR-LABEL: func @main
    # MLIR-SAME:  (%[[ARG_0:[a-z0-9]+]]: tensor<1x1x1x256x!quant.uniform<i8:f32, 0.21632751372549019:27>>) -> tensor<1x6x31x!quant.uniform<i8:f32, 0.09363494573854933:22>>
    # MLIR-SAME:  control_outputs = ""
    # MLIR-SAME:  inputs = "input"
    # MLIR-SAME:  outputs = "output"
    # MLIR:         %[[shape:.*]] = arith.constant dense<[1, -1, 31]> : tensor<3xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/loader.cc

      return absl::OkStatus();
    }
    
    Tensor CreateStringTensor(const string& value) {
      Tensor tensor(DT_STRING, TensorShape({}));
      tensor.scalar<tstring>()() = value;
      return tensor;
    }
    
    void AddAssetsTensorsToInputs(const StringPiece export_dir,
                                  const std::vector<AssetFileDef>& asset_file_defs,
                                  std::vector<std::pair<string, Tensor>>* inputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_device.h

                                 Tensor* tensor) override TF_LOCKS_EXCLUDED(mu_);
    
      Status MakeTensorFromProto(DeviceContext* device_context,
                                 const TensorProto& tensor_proto,
                                 const AllocatorAttributes alloc_attrs,
                                 Tensor* tensor);
    
      const Metadata& metadata() { return xla_metadata_; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. tensorflow/cc/experimental/libtf/tests/function_test.cc

      StatusOr<TaggedValue> v = tf_function.Execute(ctx_.get(), args);
      ASSERT_TRUE(v.ok()) << v.status().message();
      const TaggedValue& result = v.value();
      ExpectEquals(result.tuple()[0].tensor().get(), 2.0f);
      ExpectEquals(result.tuple()[1].tensor().get(), 4.0f);
    }
    
    TEST_P(FunctionTest, UnaryFuncCalledWithMultipleArgsFails) {
      // Construct a scalar.
      impl::TaggedValueTensor x = CreateScalarTensor<float, TF_FLOAT>(2.0f);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 11.1K bytes
    - Viewed (0)
Back to top