Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 202 for pushBack (0.21 sec)

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

          lhs_shape.push_back(b);
          out_shape->push_back(b);
    
          lhs_reshape_segids.at(std::get<0>(i)) = num_lhs_reshape_segids++;
        }
      } else {
        const int64_t lhs_out_size =
            ProdShapeWithIndexInTuple<0>(lhs_type.getShape(), dnums.lhs_out);
        lhs_shape.push_back(lhs_out_size);
        out_shape->push_back(lhs_out_size);
    
        for (auto i : dnums.lhs_out) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

          if (state.IsEmpty() && requantize.pos == RequantizeState::NO_REQUANTIZE) {
            input_specs.push_back(original_input_specs[i]);
          } else if (requantize.pos == RequantizeState::ON_OUTPUT) {
            input_specs.push_back(TypeAttr::get(requantize.params));
          } else {
            input_specs.push_back(TypeAttr::get(state.params));
          }
        }
        op->setAttr("input_specs", ArrayAttr::get(context, input_specs));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

        for (auto j : dependency_graph.at(i)) {
          if (is_consumed_id[j]) continue;
          queue.push_back(j);
          is_consumed_id[j] = true;
        }
      }
    
      return success();
    }
    
    void FindProducers(Value start_node, std::vector<uint64_t> &neighbors) {
      llvm::DenseSet<Value> visited;
      std::vector<Value> queue;
      queue.push_back(start_node);
      visited.insert(start_node);
      while (!queue.empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

                                                 flag.std_value(), inference_type));
            node_mins->push_back(min_max.first);
            node_maxs->push_back(min_max.second);
          } else {
            node_mins->push_back(std::nullopt);
            node_maxs->push_back(std::nullopt);
          }
        }
      }
    
      if (mlir::quant::GetInputNodeQuantSpecs(*node_names, *node_mins, *node_maxs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

          if (d == split_dim) {
            // Split dimension.
            slice_begin.push_back(begin);
            int64_t size = current_output_type.getDimSize(d);
            slice_size.push_back(size);
            begin += size;
          } else {
            slice_begin.push_back(0);
            // -1 means every elements.
            slice_size.push_back(-1);
          }
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      // TODO: b/310291615 - find a better way for platform support.
      arg_types.push_back(RankedTensorType::get({}, builder.getI32Type()));
      arg_locs.push_back(module_op.getLoc());
      for (const Value input_value : inputs) {
        arg_types.push_back(input_value.getType());
        arg_locs.push_back(input_value.getLoc());
      }
    
      // Identify result types.
      SmallVector<Type> result_types;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top