1. 17 May, 2019 2 commits
    • Tomasz Dołbniak's avatar
      [FusedOps] SquaredDifference (#2918) · d99ac8ce
      Tomasz Dołbniak authored
      * SquaredDifference implementation
      
      * Broadcast input before using it
      
      * Simple test of SquaredDifference
      
      * SquaredDifference validation tests
      
      * Formatting adjustments
      
      * Docs correction
      
      * Exclude the unit test on iGPU
      
      * Keep the includes in a single group
      
      * Update intelgpu_backend.cpp
      
      * Update unit_test.manifest
      
      * UT for the broadcasting path
      d99ac8ce
    • tsocha's avatar
      Add support for more types in gather op. (#2926) · 9d509515
      tsocha authored
      * Add test for i32 gather
      
      * Add support for ints to Gather op
      
      * Move helper function to anonymous namespace
      
      * Add more types
      
      * Use static_cast instead of the old one
      
      * Style fix
      
      * Skip tests on GPU
      
      * Add more tests
      
      * Skip tests on gpu
      
      * Change bool to char
      9d509515
  2. 16 May, 2019 2 commits
  3. 15 May, 2019 4 commits
    • Louis Feng's avatar
      [Dynamic Shape] Added Pass Properties to Core Passes (#2935) · b2ca3e79
      Louis Feng authored
      * constexpr ctor for EnumMask
      
      * added pass properties to core passes.
      
      * added unit tests.
      
      * minor fixes.
      b2ca3e79
    • Adam Rogowiec's avatar
      [Fused Op] GRN (#2905) · 4fb4be5e
      Adam Rogowiec authored
      * Extend lp-norm functions to take bias.
      
      * Move lp-norm utilities to nGraph core op/util.
      
      * Move norm files to builder directory.
      
      * Apply clang-format.
      
      * Sceleton for GRN operation.
      
      * Add GRN implementation.
      
      * Fix reshape utility function.
      
      * Address review comments.
      
      * Add using namespace std.
      
      * Review comments.
      
      * Few fixes in grn implementation.
      
      * Clang format.
      
      * Basic UT.
      
      * Fix expected data.
      
      * Add more UT and skip them on IGPU.
      
      * Review comments: const correctness and remove using namespace std statement.
      
      * Unblock GRN on IGPU.
      
      * Get back GRN op case to switch.
      
      * merge error
      4fb4be5e
    • Scott Cyphers's avatar
      89e17047
    • Michał Karzyński's avatar
      [Fused] Squeeze op with dynamic input (#2896) · 092219ec
      Michał Karzyński authored
      * Add fused Squeeze op
      
      * Use fused Squeeze op in ONNX importer
      
      * Update serializer
      
      * Add unit tests
      
      * Add type prop tests
      
      * Change Squeeze signature to accept a dynamic input for axes
      
      * Update src/ngraph/op/fused/squeeze.cpp
      Co-Authored-By: 's avatarAdam Rogowiec <adam.rogowiec@intel.com>
      
      * Code review comments
      
      * Fix failing unit test
      
      * Code review comments
      
      * Code review comments
      
      * style
      
      * Add op to iGPU backend
      
      * Add op to iGPU backend
      092219ec
  4. 14 May, 2019 1 commit
    • Scott Cyphers's avatar
      Remove remaining osx compiler warnings (#2925) · 1cbc1517
      Scott Cyphers authored
      * Fix clang compiler warnings
      
      * Remove unintended file.
      
      * style
      
      * Not part of PR
      
      * Another extra closure ref
      
      * More warnings from merges
      
      * Lambda arg was used
      
      * Remove remaining osx compiler warnings
      
      * style
      
      * Try to avoid compiler warning
      
      * Same for the other test
      1cbc1517
  5. 13 May, 2019 4 commits
  6. 11 May, 2019 4 commits
    • Jayaram Bobba's avatar
      Adding ROI pooling layers (#2899) · 3c7ca424
      Jayaram Bobba authored
      3c7ca424
    • Tomasz Dołbniak's avatar
      NgraphTestCase - dump expected and computed data to the console (#2893) · 5fbf30e3
      Tomasz Dołbniak authored
      * Dump the expected and actual values for NgraphTestCase
      
      * Adapt to changes in master
      
      * Some docs and API unification
      5fbf30e3
    • Adam Rogowiec's avatar
      [Fused op] Normalize (#2888) · fffbaa89
      Adam Rogowiec authored
      * Extend lp-norm functions to take bias.
      
      * Move lp-norm utilities to nGraph core op/util.
      
      * Move norm files to builder directory.
      
      * Normalize fused operator implementation.
      
      * Fused op boilerplate.
      
      * Fix node validation and normalization across spatial axes.
      
      * Add UT normalize across CHW with scalar scale.
      
      * Fix expanding input tensor to 4D.
      
      * Add more UT for 3D and 2D.
      
      * Add more UT, with scale and across HW.
      
      * Update to new localization of l2_norm function.
      
      * Add type_prop UT and update gpu/igpu manifests.
      
      * Apply clang-format.
      
      * Add positive UT for type_prop.
      
      * Update unit test manifests.
      
      * Address review comments.
      
      * Add using namespace std.
      
      * Remove unnecessary std prefixes.
      
      * Remove blacklisted unittests for GPU.
      
      * Apply clang-format.
      
      * Review comments.
      
      * Fix clang errors.
      fffbaa89
    • tsocha's avatar
      [Fused Op] Add new fused operator: MVN(Mean Variance Normalization) (#2887) · 58dc9d09
      tsocha authored
      * Basic mean normalization
      
      * Add NVM to serializer
      
      * Add test for mean normalization
      
      * Add support for across_channel atribute
      
      * Add test for mvn_mean_normalization splited by channels
      
      * Assume that data have n and c channels
      
      * Add support for normalize_variance attribute
      
      * Add test for full mean variance normalization
      
      * Add type prop test
      
      * Skip tests on GPU
      
      * Use ngraph builder functions instead of my own
      
      * Update mvn.cpp
      
      * Change order in initializer list
      
      * Review fix
      58dc9d09
  7. 10 May, 2019 6 commits
    • Jayaram Bobba's avatar
      Enable non-constructor use of shape inference (#2875) · 76fb19b0
      Jayaram Bobba authored
      * Enable non-constructor use of shape inference
      
      * Move GPU BatchNormTrainingWithStats shape inference out of the constructor
      
      * Addressed PR feedback
      76fb19b0
    • Jayaram Bobba's avatar
      Added extra attributes to DynSlice (#2862) · 8b091114
      Jayaram Bobba authored
      * Add more slicing attributes to dynslice
      
      * Added output shape computation for dyn slice
      
      * Bug fixes and added unit tests
      
      * Style fix
      
      * Addressed PR feedback
      8b091114
    • Adam Rogowiec's avatar
      [ONNX] Activation functions parameters for LSTM. (#2842) · dddcd4a8
      Adam Rogowiec authored
      * Move HardSigmoid to nGraph fused operators.
      
      * UT for HardSigmoid fused operator.
      
      * Add type_prop UT.
      
      * Activation function parameters and hardsigmoid activation function.
      
      * UT for lstm with hardsigmoid activation function.
      
      * Reorder operations in implementation.
      
      * Fix unit tests.
      
      * Fix typo.
      
      * Change stored activation function to pure function pointer.
      
      * Apply style-check.
      
      * [ONNX] Refactor LSTM tests to use NgraphTestCase
      
      * Enable passing instance values to comparator
      
      * Style apply.
      
      * Fix style, syntax
      
      * Change order of class member to fix errors.
      
      * Switch to single-precision parameters.
      
      * Disable unit test for IGPU.
      dddcd4a8
    • Tomasz Dołbniak's avatar
      [FusedOps] Clamp (#2886) · a006b5c4
      Tomasz Dołbniak authored
      * Fused Clamp op implementation
      
      * Basic clamp test with some edge cases
      
      * Dump the expected and actual values for NgraphTestCase
      
      * Validate the min and max params for Clamp
      
      * Use clamp in clip
      
      * Disable Clamp and its test on iGPU
      
      * Use getters for Clamp's parameters
      
      * Validate clamp's params in pre_validate_and_infer_types
      
      * Unit tests for clamp op validation
      
      * Revert "Dump the expected and actual values for NgraphTestCase"
      
      This reverts commit 3a029d70e62339ee84aadf2bf16e418281b85ff7.
      
      * Clamp op docs
      a006b5c4
    • Adam Procter's avatar
      Dynamic-shape backend API change, with prototype implementation (#2844) · 5b0c6a32
      Adam Procter authored
      * Add create_dynamic_tensor function to Backend signature
      
      * Add skeleton of dynamic wrapper class
      
      * Simple test for construction
      
      * Some progress on dynamic tensor creation
      
      * Compile dynamic wrapper into core; change config string to a factory option
      
      * Add wrapped executable, working on simple example
      
      * Add wrapped dynamic tensor
      
      * Update to match new tensor API
      
      * Update wrapper to clone the graph; basic dyn test now passes
      
      * Update call_with_validate to grok dynamic
      
      * Make the unit tests a little prettier
      
      * Make get_element_type virtual
      
      * Change dynamic tests to be backend-parametric; fix get_element_type check for dyn tensors
      
      * Add dynamic.in.cpp
      
      * CODEOWNERS entry for dynamic_wrapper
      
      * Remove overly-accommodating behavior for create_dynamic_tensor on non-dynamic BEs
      
      * Pass enable_performance_collection to wrapped compile() calls
      
      * More comments in the 'abc' test
      
      * Fix 'create' wrapper in pybind11
      
      * Remove unnecessary WrappedStaticTensor class
      
      * Better names for the classes, and add some docstrings
      
      * Fix pybind for 'create' to return shared_ptr now
      5b0c6a32
    • Adam Rogowiec's avatar
      Add HardSigmoid to fused ops. (#2824) · fb0ae59c
      Adam Rogowiec authored
      * Move HardSigmoid to nGraph fused operators.
      
      * UT for HardSigmoid fused operator.
      
      * Add type_prop UT.
      
      * Reorder operations in implementation.
      
      * Fix unit tests.
      
      * Fix typo.
      
      * Apply style-check.
      
      * Switch to single-precision parameters.
      
      * Disable unit test for IGPU.
      fb0ae59c
  8. 09 May, 2019 4 commits
    • Robert Kimball's avatar
      Store Constant arrays where data is constant as a single value (#2880) · 7c337e5d
      Robert Kimball authored
      * wip
      
      * Add support for storing constant array of constant values as a single values that is automatically broadcast on deserialize
      
      * revert some changes to serializer.cpp
      
      * fix all_close_f to support nan and inf to allow for unit test
      
      * update unit tests to pass for all_close_f update
      
      * fix bug with i64
      
      * address compile issues?
      
      * change function name to be more accurate
      
      * fix compiler error
      7c337e5d
    • Tomasz Dołbniak's avatar
      [ONNX] Hardmax support in ONNX importer (#2869) · ae352fa4
      Tomasz Dołbniak authored
      * [ONNX] Hardmax implementation in the onnx importer
      
      * [ONNX] More generic handling of types in hardmax
      
      * [ONNX] Support for doubles in EmbeddingLookup CPU builder
      
      * [ONNX] Throw when the provided axis is out of range
      
      * [ONNX] Skip the hardmax test on GPU
      
      * Unused headers clean-up
      
      * refactor: move the identity matrix generator to common.hpp
      
      * ASSERT_VALID_ARGUMENT for axis range validation
      
      * Adapt to the code changes in master
      ae352fa4
    • Michał Karzyński's avatar
      [ONNX] Refactor LSTM tests to use NgraphTestCase (#2827) · ecbe0042
      Michał Karzyński authored
      * [ONNX] Refactor LSTM tests to use NgraphTestCase
      
      * Enable passing instance values to comparator
      
      * Review comments
      ecbe0042
    • Adam Straw's avatar
      Quantization API cleanup (non breaking) (#2873) · 41f7cb5f
      Adam Straw authored
      * quantization cleanup
      
      * offset changed to zero point
      
      * fix failing tests
      
      * code style
      
      * code style
      41f7cb5f
  9. 08 May, 2019 3 commits
  10. 07 May, 2019 1 commit
    • tsocha's avatar
      [Fused Op] Move Gemm operator from onnx import to ngraph fused ops (#2853) · 9244e45b
      tsocha authored
      * Move transpose and flatten to ngraph op utils dir
      
      * Move gemm operator into ngraph fused ops
      
      * Style fix
      
      * Add Gemm to serializer
      
      * Add type_prop test for gemm
      
      * Use Gemm default values
      
      * Add UT for Gemm
      
      * Fix comments
      
      * Little cleanup
      
      * Remove artifact headers
      
      * Fix gemm documentation
      
      * Skip gemm test on GPU
      
      * Add test for broadcasting input C
      
      * Review fix pt. 1
      
      * Fix typo
      9244e45b
  11. 03 May, 2019 2 commits
    • Amy Zhuang's avatar
      Fix the cpu thread_safe_calls test on Windows. (#2861) · bd35edb5
      Amy Zhuang authored
      * Fix the cpu thread_safe_calls test on Windows.
      
      * Use notify_one.
      bd35edb5
    • Nick Korovaiko's avatar
      Move callback out of matcher (#2305) · 44f7479d
      Nick Korovaiko authored
      * ngraph core changed
      
      * cpu bits + pattern
      
      * change perms
      
      * revert std::cout to NGRAPH_DEBUG
      
      * fix comp errors
      
      * fix comment
      
      * more comment fixes
      
      * Remove callback argument
      
      * clean up.
      
      * fixed tests.
      
      * more fixes for backends.
      
      * fixe namespace.
      
      * similar fix for recurrent matcher, and improves.
      
      * fix build.
      44f7479d
  12. 02 May, 2019 1 commit
  13. 01 May, 2019 5 commits
    • Scott Cyphers's avatar
      Klocwork issues. (#2847) · 79415315
      Scott Cyphers authored
      * Klocwork issues.
      
      * Revert to dynamic_pointer_cast
      79415315
    • Pruthvi's avatar
      dynamic shape support for algebraic_simplification pass (#2804) · 870f5000
      Pruthvi authored
      * - add support to algebriac simplification to check dynamic shapes against the Pass Properties
      
      * - added PassProperty to RecurrentMatcher
      - added checks to check for dynamic function state  and PassProperty in GraphRewrite before applying graph optimization
      - optimize number of calls to f->is_dynamic() in AlgebraicSimplification
      
      * - make changes to Algebriac Simplicfication graph pass to accept PassProperty
      
      * - test case for AlgebraicSimplification pass properties
      - set the Pass Property in the pass ctor
      
      * Address PR comments
      
      * fix bug in pass manager
      
      * Addressed PR comments
      870f5000
    • Scott Cyphers's avatar
      Cyphers/fp16 (#2845) · 8933fed0
      Scott Cyphers authored
      * Basic float16
      
      * Basic fp16 support
      
      * typo
      8933fed0
    • Robert Kimball's avatar
      Change CPU backend to use PassConfig for codegen enable (#2826) · d77ace68
      Robert Kimball authored
      * Change CPU backend to use PassConfig instead of backdoor for codegen
      
      * move is_codegen decl to output dex only flag
      
      * revert change
      d77ace68
    • Nishant Patel's avatar
      Generic Reference Convolution (#2840) · 94d39716
      Nishant Patel authored
      * Generalize types in general convolution
      
      * type-o
      
      * rounding
      
      * Do prod wide
      
      * templatize conv in cpu/kernel & add u8u8 support for Qconv
      
      * Remove cast function
      
      * Avoid compiler warning
      
      * Merge problem
      94d39716
  14. 30 Apr, 2019 1 commit
    • Amy Zhuang's avatar
      allow multiple thread safe calls to compiled function in DEX mode (#2717) · 8e798add
      Amy Zhuang authored
      * Implement thread safe calls.
      
      Create MKLDNN primitives on first iteratin for quantized_concat.
      
      * Add buffer_data to CPURuntimeContext.
      
      * Fix bugs.
      
      * Modify unit test.
      
      * Swap vectors of mkldnn primitive pointers for CODEGEN.
      
      * Fix a bug.
      
      * Address PR feedback.
      
      * Rename variables.
      
      * Update Gather, GatherND, and DeconvolutionBias.
      
      * Fix style error.
      
      Disable cpu thread_safe_calls test on Windows.
      8e798add