Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 424 for pushBack (0.13 sec)

  1. tensorflow/cc/experimental/libtf/tests/value_test.cc

      TaggedValue valuef(3.f);
      TaggedValue valuei(int64_t(3));
      TaggedValue list = TaggedValue::List();
      TaggedValue tuple = TaggedValue::Tuple();
      tuple.tuple().push_back(TaggedValue(int64_t(310)));
      list.list().push_back(valuei);
      list.list().push_back(valuef);
      list.list().push_back(tuple);
      std::stringstream stream;
      stream << list;
      ASSERT_EQ(stream.str(), "[3, 3, (310, ), ]");
    }
    
    TEST(ValueTest, TestString) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 01 11:18:25 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/representative_dataset_test.cc

      *(config_1.mutable_tf_record()->mutable_path()) = "test_path_1";
      representative_dataset_configs.push_back(config_1);
    
      // Signature key is implicitly "serving_default".
      RepresentativeDatasetConfig config_2{};
      *(config_2.mutable_tf_record()->mutable_path()) = "test_path_2";
      representative_dataset_configs.push_back(config_2);
    
      const absl::StatusOr<
          absl::flat_hash_map<std::string, RepresentativeDatasetFile>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 29 04:53:21 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

          auto type = std::get<1>(it);
          if (value.getType() == type) {
            args.push_back(value);
          } else {
            if (IsCompatibleTypeWithTFLCastOp(value.getType()) &&
                IsCompatibleTypeWithTFLCastOp(type)) {
              auto cast = b.create<CastOp>(yield_op->getLoc(), type, value);
              args.push_back(cast);
            } else {
              auto cast = b.create<TF::CastOp>(yield_op->getLoc(), type, value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_launch_util_test.cc

    };
    
    TEST_F(PjRtExecutionUtilTest, PreparePjRtExecutableArguments) {
      std::vector<const Tensor*> inputs;
      inputs.push_back(CreateDeviceTensor<int32_t>(TensorShape({1, 3}), {0, 0, 0}));
      inputs.push_back(CreateDeviceTensor<int32_t>(TensorShape({1, 3}), {1, 2, 3}));
      inputs.push_back(CreateDeviceTensor<int32_t>(TensorShape({1, 3}), {4, 5, 6}));
      int num_missing_prefix_ctx_inputs = 2;
      std::vector<int> input_mapping{3, 4};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  5. tensorflow/cc/gradients/functional_grad.cc

      for (int i = 0; i < num_inputs; i++) {
        func_inputs.push_back(op.input(i));
        input_dtypes.push_back(op.input_type(i));
      }
    
      func_inputs.insert(std::end(func_inputs), std::begin(grad_inputs),
                         std::end(grad_inputs));
    
      auto grad = SymbolicGradient(scope, func_inputs, input_dtypes, f);
      for (int i = 0; i < num_inputs; i++) {
        grad_outputs->push_back(grad[i]);
      }
    
      return scope.status();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 20:09:06 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

              return WalkResult::interrupt();
            }
    
            if (llvm::find(func_metadata.inputs, value) ==
                func_metadata.inputs.end()) {
              func_metadata.inputs.push_back(value);
              func_metadata.input_devices.push_back(value_device);
            }
            continue;
          }
    
          Operation *defining_op = value.getDefiningOp();
          std::string defining_op_host = GetHost(defining_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

      *b_map = {};
      *b_size = {};
      int block_rank = 0;
      for (int i = 0; i < dims_count; i++) {
        if (block_size[i] != 1) {
          traversal_order->push_back(block_rank + dims_count);
          format->push_back(kTfLiteDimDense);
          block_rank++;
          b_map->push_back(i);
          b_size->push_back(block_size[i]);
        }
      }
    }
    
    inline float GetSparsity(const int num_zeros, const int num_elements) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

            auto newTy = QuantizedType::castToExpressedType(operand.getType());
            newOperands.push_back(
                rewriter.create<TFL::DequantizeOp>(loc, newTy, operand));
            continue;
          }
    
          newOperands.push_back(operand);
        }
    
        SmallVector<Type> newResultTys;
        for (auto result : op->getResults()) {
          Type resultTy = result.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/saved_model/core/test_utils.cc

      result.reserve(set.size());
      for (DataType dt : set) {
        result.push_back(dt);
      }
      return result;
    }
    
    std::vector<std::vector<int64_t>> InterestingShapes() {
      std::vector<std::vector<int64_t>> interesting_shapes;
      interesting_shapes.push_back({});             // Scalar
      interesting_shapes.push_back({10});           // 1D Vector
      interesting_shapes.push_back({3, 3});         // 2D Matrix
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:13:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

          padded_begin.push_back(0);
          padded_end.push_back(0);
          padded_stride.push_back(1);
        }
    
        // Account for ellipsis mask.
        ++index;
    
        // After the ellipsis.
        for (; index < begin_shape[0];) {
          padded_begin.push_back(begin_dense_elem_attr.getValues<int32_t>()[index]);
          padded_end.push_back(end_dense_elem_attr.getValues<int32_t>()[index]);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
Back to top