Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 202 for pushBack (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

        return split.emitOpError("different split lengths are not supported");
      }
      llvm::SmallVector<int64_t, 8> elem_shape;
      elem_shape.push_back(length);
      for (int64_t dim : buffer_type.getShape().drop_front()) {
        elem_shape.push_back(dim);
      }
      *elem_type = RankedTensorType::get(elem_shape, buffer_type.getElementType());
      return success();
    }
    
    // Tries to infer the tensor array element shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  2. tensorflow/cc/gradients/array_grad_test.cc

    }
    
    TEST_F(ArrayGradTest, ConcatV2Grad) {
      TensorShape shape({3, 2, 5});
      std::vector<Output> xs;
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      auto axis = Const(scope_, 0);
      auto y = Concat(scope_, xs, axis);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        components.reserve(underlying_devices_.size());
        for (int j = 0; j < underlying_devices_.size(); ++j) {
          components.push_back(std::move(per_device_output_tensors[j][i]));
        }
        if (expected_output_shapes[i].IsFullyDefined()) {
          per_device_outputs.push_back(ParallelTensor::FromTensorHandles(
              *this, std::move(components),
              absl::Span<const int64_t>(expected_output_shapes[i].dim_sizes()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 07:47:20 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

            input_output_alias.push_back(
                {new_argument_index, return_operands.size()});
          } else if (is_var_handle) {
            output_only_resources.push_back(
                {return_operands.size(),
                 var_handle_shared_names[index - var_handles_start_idx]});
          }
          return_operands.push_back(resource.live_value);
          result_types.push_back(resource.live_value.getType());
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

                             stride_i, pad_i_low, pad_i_high);
        temp_padding_values.push_back(scalar_to_rank1(pad_i_low));
        temp_padding_values.push_back(scalar_to_rank1(pad_i_high));
      }
      temp_padding_values.push_back(zero_rank1);
      temp_padding_values.push_back(zero_rank1);
    
      padding = CreateConstValue<int32_t>(
          builder, loc, /*shape=*/{num_dims - 2, 2},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      for (int i = 0; i < t.NumElements(); i++) {
        int64_t element = t.dtype() == DT_INT32
                              ? static_cast<int64_t>(t.flat<int32>()(i))
                              : t.flat<int64_t>()(i);
        result.push_back(element);
      }
      return result;
    }
    
    // Packages up the inputs to a Slice operation into an instance of
    // `SliceInputs`.
    StatusOrOptional<SliceInputs> GetSliceInputs(Node* slice) {
      const int kSliceInputIndex = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

        auto info_it = var_access_info.per_resource_info.find(resource);
        if (info_it == var_access_info.per_resource_info.end()) continue;
        device_var_reads_indices.push_back(info_it->second.execute_input_index);
        device_var_updates_indices.push_back(info_it->second.execute_output_index);
      }
    
      // Check that all resources are either read or written to.
      for (auto it : llvm::enumerate(var_access_info.new_operand_values)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 17:52:11 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

            if (defining_op != nullptr &&
                defining_op->hasTrait<OpTrait::ConstantLike>()) {
              continue;
            }
    
            quantizable_values.push_back(input.get());
            aggregator_ids.push_back(
                (llvm::Twine(composite_function_name.value()) + "_arg_" +
                 llvm::Twine(input.getOperandNumber()) + "_calibration_method_" +
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

          if (ops_with_tokens.insert(parent).second) {
            worklist.push_back(parent);
          }
          continue;
        }
    
        // For functions, get all the users and add them to the worklist.
        for (auto& user : symbol_map.getUsers(parent)) {
          if (ops_with_tokens.insert(user).second) {
            worklist.push_back(user);
          }
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      // for the signature, for us, since we know the inputs, we can infer the time
      // steps.
    
      // Last output.
      outputs.push_back(last_output);
      output_types.push_back(last_output.getType());
    
      // Full sequences.
      outputs.push_back(final_output_full_sequences);
      output_types.push_back(final_output_full_sequences.getType());
    
      // All the rest: states, device.
      for (int i = 2; i < 5; ++i) {
        auto result_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top